Sign in Join
FPDoc Onlineexperiment

TFPSMap.InsertKey procedure

Member of TFPSMappublicIn unit fgl

Insert a key in the list.

Declaration

pascal
procedure InsertKey(Index: Integer; AKey: Pointer)

Arguments

Index

Index at which position key must be inserted.

AKey

Pointer to Key value to insert.

Description

InsertKey will allocate a new slot in the list for a key value as pointed to by AKey, and copy the key pointed to by AKey to the slot.

Errors

If the maximum amount of values is reached or an invalid index is specified, InsertKey will raise an EListError exception.

See also

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