TFPGMapObject.Keys

Indexed access to the keys in the list.

Declaration

Source position: fgl.pp line 387

public Property
  Keys[Index: Integer]: TKey;

Description

Keys provides indexed access to the key values in the list. Valid values for Index are in the range [0..Count-1]. Key values can always be read, but can only be written if the list is unsorted.

Errors

If the index AIndex is out of range [0..Count-1], an EListError exception will be raised. The same exception is raised if a key is written and the list is sorted.

See also

Name Description
TFPGMapObject.Data Indexed access to the data in the list
TFPGMapObject.KeyData Access to data based on key
TFPSList.Count Current element count