SolFSStorage.Compact method
Filter:
Pascal DLL C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NETOverview
Compacts the file, in which the storage is located.
Declaration
[Pascal]
function Compact: Boolean;
[DLL]
long _stdcall StorageCompact(unsigned long Storage, char *Compacted);
[C++ (DLL/Lib)]
bool Compact();
[C++ (VCL)]
bool __fastcall Compact();
[C++ (.NET)]
bool Compact();
[C#]
public bool Compact();
[VB.NET]
Public Function Compact as Boolean
Parameters
Return value
True on success.
False if storage is busy with another process.
[DLL] 0 if the function succeeded or one of Error codes if the function failed.
Description
Use Compact method to decrease size of the physical file, in which the storage is located. Compacting is done by reordering pages in the file and then truncating the file (and removing extra space).
