JVCL Help:TJvAppIniFileStorage.AutoReload
JVCL Help: TJvAppIniFileStorage.AutoReload Property
Search in JVCL Help
Search in all projectsSummary
If set to True, the Reload method will be called whenever an information is about to be read from the in memory file.
Pascal
propertyAutoReload: Boolean;
Description
Please note that if AutoReload is set to True and AutoFlush is not, then only the very last change done will be written into the physical file. Look at this sequence:
Write (calls [[JVCL_Help:TJvAppIniFileStorage.Reload|Reload]] before writing)<br/> Write (calls [[JVCL_Help:TJvAppIniFileStorage.Reload|Reload]] before writing)<br/> Write (calls [[JVCL_Help:TJvAppIniFileStorage.Reload|Reload]] before writing)<br/> Write (calls [[JVCL_Help:TJvAppIniFileStorage.Reload|Reload]] before writing)<br/>[[JVCL_Help:TJvCustomAppIniStorage.Destroy|Destroy]] (calls [[JVCL_Help:TJvAppIniFileStorage.Flush|Flush]])
The only time Flush is called is when the component is destroyed, thus only putting the last Write into the file. This is why AutoFlush should always be set to True when AutoReload is. This is not ensured by the component because some user may want this behavior to happen.
See Also
TJvAppIniFileStorage.AutoFlush, TJvAppIniFileStorage.FileName, TJvAppIniFileStorage.Reload
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page