Sign in Join
FPDoc Onlineexperiment

TFPHashList.Add function

Member of TFPHashListpublicIn unit Contnrs

Add a new key/data pair to the list.

Declaration

pascal
function Add(const AName: RawByteString; Item: Pointer): SizeInt

Arguments

AName

Key name associated with data.

Item

Data pointer.

Function result

Position of the new item in the list.

Description

Add adds a new data pointer ( Item) with key AName to the list. It returns the position of the item in the list.

Errors

If not enough memory is available to hold the key and data, an exception may be raised.

See also

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