Sign in Join
FPDoc Onlineexperiment

TStoredValues.StoredValue property

Member of TStoredValuespublicIn unit PropertyStorage

Provides indexed access to the value for a collection item with the specified name.

Declaration

pascal
property StoredValue[Name: string]: TStoredType read GetStoredValue write SetStoredValue;

Description

StoredValue is an indexed TStoredType property which provides access to the value for a collection item with the name specified in the Name argument. TStoredType allows the value to be represented as either a String or Variant type. See TStoredType for more information.

The IndexOf method is called to locate the collection item with the specified Name. If a collection item is not found, the property value can be either an empty string ('') (when TStoredType is AnsiString) or Null (when TStoredType is a Variant).

When writing the value for the indexed property, a new collection item is created in Items if a TStoredValue entry does not already exist with the specified Name.

Use the Values property to access a collection item instance by its Name. Use the Items property to access a collection item by its ordinal position.

See also

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