| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
DB-W-HTML
   Example  
   Where it Starts  
   The Big Picture  
   DB Structure  
   AppID on the Fly  
   Hook up the DB  
   htdbwapp.pas  
   Multilingual DB  
*

  

Browsing >>DB Structure: What fields to put into your own table

Chunks Database Structure
ht\htdemos\demodata\chunks.db  

 

How to load the database pages into memory

procedure TfmAppDBHTML.BtnLoadClick(Sender: TObject);
var
  wp:TwhPage;
  a1:string;
begin
  inherited;
  with pWebApp, table1 do begin
    close;
    DatabaseName:=editPath.text;
    open;
    //
    first;
    while not EOF do begin
      if fieldByName('Type').asString='Page' then begin
        a1:=fieldByName('ChunkID').asString;
        // add to the app's pages list.
        Pages.add(a1+'='+a1+',,,The '+a1+' web page.');
        // note that the page sections will set themselves up
        end;
        next;
      end;
    end;

end;

 
Path:  www.href.com to; Services to; Tech Talk Archive to; DB-W-HTML to; DB Structure

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Wed, 23 May 2012 22:26:51.
Session 452429792, 25 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.229;
Time to produce this page: 16msec.