I have tried the following
procedure ButtonClick(Sender: TObject);
begin
with tblMine do
begin
tblMine.EmptyTable;
end;
end;
...which gives me exception
'Table cannot be opened for exclusive use.'
Can anyone please tell me how to overcome this?
I have also tried
with tblMine do
begin
try
tblMine.DisableControls;
tblMine.First;
while not tblMine.EOF do
begin
tblMine.Delete;
tblMine.Next;
end;
finally
tblMine.EnableControls;
end;
end;
Which only clears 5 out of 10 then 3 out of 5
then 1 out of 2 then the last one.
Why does this routine do this?
Anyone?