Sign in Join
FPDoc Onlineexperiment

TFPObjectHashTable.Add procedure

Member of TFPObjectHashTablepublicIn unit Contnrs

Add a new object to the hash table.

Declaration

pascal
procedure Add(const aKey: AnsiString; AItem: TObject); virtual

Arguments

aKey

key Associated with object.

AItem

Object to store.

Description

Add adds the object AItem to the hash table, and associates it with key aKey.

Errors

If the key aKey is already in the hash table, an exception will be raised.

See also

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