[Overview][Constants][Types][Classes][Index] Reference for unit 'fgl' (#rtl)

TFPGMapObject.Keys

Indexed access to the keys in the list.

Declaration

Source position: fgl.pp line 382

public property TFPGMapObject.Keys[Index: Integer] : TKey
  read GetKey
  write PutKey;

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

TFPSList.Count

  

Current element count

TFPGMapObject.Data

  

Indexed access to the data in the list

TFPGMapObject.KeyData

  

Access to data based on key