temporary dbf table

temporary dbf table

Post by Claudio Za » Sat, 11 Sep 2004 06:44:47


Hi, I need to create a temporary dbf table, I think using this code:

with TTable.Create(nil) do
begin
DatabaseName := GetEnvironmentVariable('TEMP');
TableName := 'test';
TableType := ttDBase;
with FieldDefs do
begin
Add('F_NAME', ftString,20,false);
Add('L_NAME', ftString,30,false);
end;
CreateTable;
end;

The problem is that it works fine only on some computers, in others it tells
me "Cannot open table" and I don't know why!
If I use ttParadox type the code works fine on all computers!

Please help me, thanks.

Claudio
 
 
 

temporary dbf table

Post by Legat » Sat, 11 Sep 2004 07:16:01


Hi
try

TableType := ttFoxPro;

Reg...

L.

 
 
 

temporary dbf table

Post by Claudio Za » Mon, 13 Sep 2004 05:05:56

It works fine, thanks!

Claudio

"Legato" < XXXX@XXXXX.COM > ha scritto nel messaggio