TFPGMapInterfacedObjectData.InsertKeyData

Insert a new key with associated data in the list

Declaration

Source position: fgl.pp line 432

public 
  procedure InsertKeyData(Index: Integer; const AKey: TKey; 
                         const AData: TData);

Description

InsertKey inserts key AKey with associated data AData at position Index in the list. It is not allowed to insert a key in a sorted list.

Errors

If the index AIndex is out of range [0..Count-1], or the list is sorted, an EListError exception will be raised.

See also

Name Description
TFPGMapInterfacedObjectData.Add Add a key and value to the map
TFPGMapInterfacedObjectData.InsertKey Insert a new key in the list
TFPGMapInterfacedObjectData.Remove Remove a key from the list
TFPSMapInterfacedObjectData.Delete

results matching ""

    No results matching ""