2009/12/8 John <[email protected]>

>  Dians wrote:
>
>
> 2009/12/5 Dians <[email protected]>
>
>>      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 <[email protected]>
>>
>
> 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
> [email protected]
> 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) ..
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to