[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Add a new key/data pair to the list
Source position: contnrs.pp line 310
public function TFPHashObjectList.Add( |
const AName: shortstring; |
AObject: TObject |
):Integer; |
AName |
|
Key name associated with object instance. |
AObject |
|
object instance |
Position of the new object in the list
Add adds a new object instance (AObject) with key AName to the list. It returns the position of the object in the list.
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.
|
Extract a object instance from the list |
|
|
Remove first occurrence of a object instance |
|
|
Delete an object from the list. |