EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


Compacts the database file associated with this database component.

function CompactDatabase(var Log: String): Boolean;

Call CompactDatabase to reduce the size of a database file.
This function returns True if the operation has been completed successfully and then the Log parameter is blank.
If some tables were corrupted, CompactDatabase return False and the Log parameter contains a string with the corrupted tables list.

Note:   Compacting process may take a long time if you work with large database. You may set the OnProgress event handler to provide the user with a feedback about the progress of the potentially slow process or to cancel the process.

© AidAim Software EasyTable: