Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

TDBF

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dians

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..?

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091204/4b97da2c/attachment.html>

Reply by email

Raistware
to Dians

Dians escribi?:

Show quoted text 18 lines
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".

Reply by email

Dians
to Raistware

2009/12/4 Raistware

Show quoted text 28 lines
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". -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

yes, exactly , i have some advice from some web page , have to do add db unit

thank for attentions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091204/012958e5/attachment.html>

Reply by email

Dians
to Dians

2009/12/4 Dians

Show quoted text 39 lines
2009/12/4 Raistware 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". > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > yes, exactly , i have some advice from some web page , have to do add db unit thank for attentions

i have successed create dbf file , but when open with fox pro it's identified with not a table , is there something wrong with create it..? -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091205/3eb77c83/attachment.html>

Reply by email

Dians
to Dians

2009/12/5 Dians

Show quoted text 48 lines
2009/12/4 Dians > > 2009/12/4 Raistware > > 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". >> >> -- >> _______________________________________________ >> Lazarus mailing list >> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > yes, exactly , i have some advice from some web page , have to do add db > unit > > thank for attentions > > i have successed create dbf file , but when open with fox pro it's identified with not a table , is there something wrong with create it..?

dear all,
is there anyone have success create dbase / foxbase file with TDBF component , i have created it but when open it with foxpro, it's identified with not a table , anyone have got experiences..?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091208/cb1bbb90/attachment.html>

Reply by email

Dians
to John

2009/12/8 John

Show quoted text 65 lines
Dians wrote: 2009/12/5 Dians > 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". >>> >> > i have successed create dbf file , but when open with fox pro it's > identified with not a table , is there something wrong with create it..? > > 2009/12/4 Dians > dear all, is there anyone have success create dbase / foxbase file with TDBF component , i have created it but when open it with foxpro, it's identified with not a table , anyone have got experiences..? Hi Dians, I have not replied previously, as I have never created tables this way. I have used a few dbase tables, but I created them from an old copy of dbase itself. I have just tried your code, and it works as you suggest - the table created, but I can't open it with dbase 5 either. Question - how old is your foxpro - does it definitely work with tablelevel 7 ? If I change the table level to 4 (and change "ID" to a string field as well), all works as expected - I can open it in dbase 5. "traditional" dbase tables don't have autoinc - I don't know about the later table levels. If you want to use the tables in foxpro, I suggest you create them in foxpro - at least once to see what it creates. cheers, John Sunderland -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus I use foxpro 7.0 to open it , with foxpro i just want to look the data ,

does the data store with lazarus enter to database ( dbf file) .. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091208/d7418791/attachment-0001.html>

Reply by email