TCustomIniPropStorage.StorageNeeded procedure
Creates or recreates the underlying INI file storage for the class instance.
Declaration
procedure StorageNeeded(ReadOnly: Boolean); overrideArguments
ReadOnly | True if the INI file allows read-only access. |
Description
StorageNeeded is an overridden
Boolean function in
TCustomIniPropStorage. It ensures that the IniFile property is
created or recreated when the method is called. The value in the ReadOnly
argument is assigned to an internal member in the class instance; IniFile is
recreated if the value in the member has been changed since the class was
created.
StorageNeeded is called from methods in ancestor classes when the Active property is enabled, including: Save, Restore, SaveProperties, RestoreProperties, ReadString, WriteString, ReadInteger, WriteInteger, and EraseSection.
See FreeStorage for the actions performed when the storage for the class instance is no longer needed.
Use Active to control whether access using the INI file storage is enabled.
Use IniFileName to specify the qualified path including file name for the INI file storage.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
