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


Repairs the database table associated with this table component.

function RepairTable(var Log: string): Boolean;

Call RepairTable to repair data corruption that can occur due to unexpected power loss or improper operating system shutdown.

This function returns true if the table is correct and if no updates had been made and then the Log parameter is blank.
If the table was corrupted, RepairTable return false and the Log parameter contains a string with the corrupted records list. In this case, RepairTable backups original corrupted files with <table_name>_backup.* file names.

Repairing process may take a long time if you work with large table. You may set the OnProgress event handler to provide the user with a feedback about the progress of the slow process.

© AidAim Software EasyTable: