Sign in Join
FPDoc Onlineexperiment

TStringHashList.Data property

Member of TStringHashListpublicIn unit StringHashList

Provided indexed access to the data for a hash item using its key value.

Declaration

pascal
property Data[S: string]: Pointer read GetData write SetData; default;

Description

Data is an indexed Pointer property which provides access to the storage for a hash item by its key value. The untyped Pointer in the property values is arbitrary data associated with the key value, and must be cast to the type expected in an application.

The Find method is called when reading or writing a value in the property. Finds gets the position where the hash item is stored in List using the setting in the CaseSensitive property. If the value in S does not exist when reading a property value, Nil is returned. If the value in S does not exist when writing a property value, the Add method is called to create a new hash item in List with the key in S.

Data is the default property for the container, and the value used in an enumerator for the class instance.

See also

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