Sign in Join
FPDoc Onlineexperiment

TCustomPropertyStorage.StorageNeeded procedure

Member of TCustomPropertyStoragepublicIn unit PropertyStorage

Ensures that the storage mechanism for the container is available.

Declaration

pascal
procedure StorageNeeded(ReadOnly: Boolean); virtual

Arguments

ReadOnlyTrue if write access is disabled for the property store. False if write access is allowed.

Description

StorageNeeded is a method used to ensure that the underlying storage mechanism for the container has been allocated and configured. StorageNeeded has an empty implementation in TCustomPropertyStorage. It must be overridden in a descendent class to use the format and access mechanism needed.

The ReadOnly argument indicates whether write access is enabled for the storage. In general, the Save method requires write access and the Restore method does not.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.