Sign in Join
FPDoc Onlineexperiment

TFPGMapObject.InsertKeyData procedure

Member of TFPGMapObjectpublicIn unit fgl

Insert a new key with associated data in the list.

Declaration

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

Arguments

Index

Index at which to insert AKey and AData.

AKey

Key to insert in the list.

AData

Data to associate with AKey.

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

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