Sign in Join
FPDoc Onlineexperiment

TCustomBucketList.Add function

Member of TCustomBucketListpublicIn unit Contnrs

Add an item to the list.

Declaration

pascal
function Add(AItem: Pointer; AData: Pointer): Pointer

Arguments

AItem

Item to add to the list. Must uniquely identify AData.

AData

Data to be associated with AItem.

Function result

The result is always AData.

Description

Add adds AItem with it's associated AData to the list and returns AData.

Errors

If AItem is already in the list, an ElistError exception will be raised.

See also

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