Mega Code Archive

 
Categories / Delphi / ADO Database
 

Packing dbase tables

Question: Is there a BDE API or a DLL available to pack a dBASE table? Answer: The BDE includes a function to pack dBASE tables, called DbiPackTable(). Include the BDE.HPP header file. Then call the BDE function as follows: DBIPackTable(Table1->DbHandle, Table1->Handle, "TABLENAME.DBF", szDBASE, TRUE); Note: The table must be opened in exclusive mode