<br><br><div class="gmail_quote">2009/12/8 John <span dir="ltr"><<a href="mailto:jszcmpr@netspace.net.au">jszcmpr@netspace.net.au</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Dians wrote:
<blockquote type="cite"><br>
<div class="gmail_quote"><div class="im">2009/12/5 Dians <span dir="ltr"><<a href="mailto:diansopandi95@gmail.com" target="_blank">diansopandi95@gmail.com</a>></span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><span dir="ltr"></span>
<div>
<div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote">
<div>
<div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">dear
all,<div class="im"><br>
i have create a dbase file with Tdbf component, but when create a field
show some error like this<br>
<br>
ge_unit.pas(297,46) Error: Identifier not found "ftAutoInc"<br>
<br>
i have replace with ftstring or ftinteger , show same error , i have
follow the instructions on the web page, here the code<br>
<br>
Dbf1.Active := False;<br>
dbf1.TableLevel := 7;<br>
Dbf1.TableName := 'Test.dbf';<br>
Dbf1.FieldDefs.Clear;<br>
Dbf1.fieldDefs.Add('id',ftAutoInc,0,True);<br>
Dbf1.fieldDefs.Add('Name',ftstring,30,True);<br>
Dbf1.createtable;<br>
is there something i missed..?<br>
</div></blockquote>
</div>
</div><div class="im">
Sound as you forgive to add a unit in your uses clause, try with "Db".<font color="#888888"><br>
</font></div></blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div><br><div class="im">
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..?<br>
<br>
</div></div>
</div><div class="im">
2009/12/4 Dians <<a href="mailto:diansopandi95@gmail.com" target="_blank">diansopandi95@gmail.com</a>><br>
</div></blockquote>
<div><br><div class="im">
dear all,<br>
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..?<br>
</div></div>
</div>
</blockquote>
Hi Dians,<br>
<br>
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.<br>
<br>
Question - how old is your foxpro - does it definitely work with
tablelevel 7 ? <br>
<br>
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.<br>
<br>
If you want to use the tables in foxpro, I suggest you create them in
foxpro - at least once to see what it creates.<br>
<br>
cheers,<br>
John Sunderland<br>
</div>
<br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div>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) ..<br><br>