Add a new key/data pair to the list.
Source position: contnrs.pp line 249
public function TFPHashList.Add( |
const AName: shortstring; |
Item: Pointer |
):Integer; |
AName |
|
Key name associated with data. |
Item |
|
Data pointer. |
Position of the new item in the list.
Add adds a new data pointer (Item) with key AName to the list. It returns the position of the item in the list.
If not enough memory is available to hold the key and data, an exception may be raised.
|
Extract a pointer from the list. |
|
|
Remove first instance of a pointer. |
|
|
Delete an item from the list. |