Link to home
Start Free TrialLog in
Avatar of ginsonic
ginsonicFlag for Romania

asked on

Pack a dbf table

In past I used next code for this job:

 MainForm.Lista.Active := False;
 try    MainForm.Lista.Exclusive := True;
    MainForm.Lista.Active := True;
    DbiPackTable(MainForm.Lista.DBHandle, MainForm.Lista.Handle, nil, szdBASE, True);
    MainForm.Lista.Active := False;
    MainForm.Lista.Exclusive := False;
 finally
    MainForm.Lista.Active := True;
 end;

But now don't wish to work. Report that the table is busy :(

HELP!
Avatar of ginsonic
ginsonic
Flag of Romania image

ASKER

Solve it. Stupid me, I opened same table with Database Desktop :)
ASKER CERTIFIED SOLUTION
Avatar of SpideyMod
SpideyMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial