Recent

Author Topic: External index files - Tdbf  (Read 5696 times)

TRNelson

  • Jr. Member
  • **
  • Posts: 64
External index files - Tdbf
« on: January 21, 2016, 02:17:29 am »
Is there a good small example somewhere on how to set up and use an external index file in Tdbf?  The Tdbf Tutorial is scant on this type of information.  The Tdbf Manual says what everything is but has few examples.

 :)

LacaK

  • Hero Member
  • *****
  • Posts: 696
Re: External index files - Tdbf
« Reply #1 on: January 21, 2016, 09:10:51 pm »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: External index files - Tdbf
« Reply #2 on: January 22, 2016, 12:05:23 am »
A small further example is attached.

TRNelson

  • Jr. Member
  • **
  • Posts: 64
Re: External index files - Tdbf
« Reply #3 on: January 23, 2016, 05:38:40 pm »
A small further example is attached.
That is fantastic!  It is exactly what I was looking for.  A bonus is that it also answered a few other unrelated questions.  Small projects like this make learning Lazarus a lot easier.
 :)

FTurtle

  • Sr. Member
  • ****
  • Posts: 292

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: External index files - Tdbf
« Reply #5 on: January 24, 2016, 07:11:14 am »
By the way, a little comment to example:

Code: Pascal  [Select][+][-]
  1.   FieldDefs.Add('ID', ftAutoInc, 0, True);
  2.   ...
  3.   Append;
  4.   // Fields[0].AsInteger:=100;  // Do not fill 'ID' because its type is ftAutoInc
  5.   fields[1].AsString:='France';
  6.  

TRNelson

  • Jr. Member
  • **
  • Posts: 64

 

TinyPortal © 2005-2018