[Lazarus] TDBF

Raistware raistware at gmail.com
Fri Dec 4 11:40:50 CET 2009


Dians escribió:
> dear all,
> i have create a dbase file with Tdbf component, but when create a 
> field show some error like this
>
> ge_unit.pas(297,46) Error: Identifier not found "ftAutoInc"
>
> i have replace with ftstring or ftinteger , show same error , i have 
> follow the instructions on the web page, here the code
>
>        Dbf1.Active  := False;
>        dbf1.TableLevel := 7;
>        Dbf1.TableName := 'Test.dbf';
>        Dbf1.FieldDefs.Clear;
>        Dbf1.fieldDefs.Add('id',ftAutoInc,0,True);
>        Dbf1.fieldDefs.Add('Name',ftstring,30,True);
>        Dbf1.createtable;
>  
> is there  something i missed..?
Sound as you forgive to add a unit in your uses clause, try with "Db".




More information about the Lazarus mailing list