<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dians wrote:
<blockquote
cite="mid:c4df49610912071819n1d57fd78n77bec721becba168@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">2009/12/5 Dians <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:diansopandi95@gmail.com">diansopandi95@gmail.com</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 class="gmail_quote"><span dir="ltr"></span>
<div>
<div class="h5">
<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,<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>
</blockquote>
</div>
</div>
Sound as you forgive to add a unit in your uses clause, try with "Db".<font
color="#888888"><br>
</font></blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</div>
<div><br>
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>
2009/12/4 Dians <<a moz-do-not-send="true"
href="mailto:diansopandi95@gmail.com" target="_blank">diansopandi95@gmail.com</a>><br>
</blockquote>
<div><br>
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>
</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>
</body>
</html>