Re:Creating Paradox tables at run-time
In article <01bc38fa$1312a620$95024...@host.telepac.pt>, =?ISO-
8859-1?Q?Jos=E9_de_Mello=2C_SGPS?= <nop16...@mail.telepac.pt> writes
Quote
>I have to create some Paradox tables at run-time and sometimes I get the
>error message "Table is busy". If you have any suggestions on how to create
>the tables and never get that error I would appreciate your help.
>Thanks in advance,
>Luis Seabra
>jmservi...@mail.telepac.pt
I too have to create some Paradox tables at run-time but I have never
experienced any error message. With my application I ensure that it is
compiled with the appropriate TTable component inactive (Active :=
False), and to create it I call the Create method with the table in this
inactive state. My (simplified) code looks something like this:
with Table do { Table: TTable }
begin
try
Open; { See if the table exists by trying to open it }
except
on on EDatabaseError do
begin
{ An error occurred opening the table. Assume it
doesn't exist, create it, then open it }
CreateTable;
Open;
end;
end; { end try }
end; { end with }
I am using Delphi V1 and WFW 3.11. Hope the above helps.
Steve Turner
Leeds, England