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


TEasyDatabase.CompactDatabase
TEasyDatabase
Top 

Compacts the database file associated with this database component.

function CompactDatabase(var Log: String): Boolean;

Description
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: Easytable Single-file Embedded Database Bde Replacement Delphi C\+\+builde