SolFSStorage.AutoCompact property


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Determines when Compact method must be invoked automatically.


    property AutoCompact: LongWord;

[Plain C]
    long _stdcall StorageSetAutoCompact(unsigned long Storage, unsigned long Percent);
    long _stdcall StorageGetAutoCompact(unsigned long Storage, unsigned long *Percent);

[C++ (DLL/Lib)]
    unsigned long get_AutoCompact()
    void set_AutoCompact(unsigned long)

[C++ (VCL)]
    __property LongWord AutoCompact;

[C++ (.NET)]
    LongWord get_AutoCompact()
    void set_AutoCompact(LongWord)

    int AutoCompact

    Property AutoCompact As Integer

    long getAutoCompact()
    void setAutoCompact(long value)


  • [Plain C] Storage - handle to the storage returned by Create or Open function.
  • [Plain C] Percent - maximum allowed percentage of space, which can remain free without calling Compact method automatically.

[Plain C]  Return values

0 if the function succeeded or one of Error codes if the function failed.


If percentage of free space in storage becomes higher then value of AutoCompact property, Compact method will be invoked automatically.
If the value of AutoCompact property is set to zero, Compact is never invoked automatically.
Default value is 25 percent.

See also

Compact     DiskSize     DiskFree