TFPHashObjectList.Add¶
Add a new key/data pair to the list.
Declaration¶
Source position: contnrs.pp line 323
public
function TFPHashObjectList.Add(const AName: RawByteString;
AObject: TObject) : Integer;
Description¶
Add adds a new object instance (AObject) with key AName to the list. It returns the position of the object in the list.
Errors¶
If not enough memory is available to hold the key and data, an exception may be raised. If an object with this name already exists in the list, an exception is raised.
See also¶
| Name | Description |
|---|---|
| TFPHashObjectList.Extract | Extract a object instance from the list. |
| TFPHashObjectList.Remove | Remove first occurrence of a object instance. |
| TFPHashObjectList.Delete | Delete an object from the list. |