Filter:Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NET Java
Compacts the file, in which the storage is located.
function Compact: Boolean;
bool __fastcall Compact();
public bool Compact();
Public Function Compact as Boolean
True on success.
False if storage is busy with another process.
[Plain C] 0 if the function succeeded or one of Error codes if the function failed.
Use Compact method to decrease size of the back-end container (file on the disk or other container), in which the storage is located. Compacting is done by reordering pages in the file and then truncating the file (and removing extra space).