[Overview][Constants][Types][Classes][Index] |
Add a key and value to the map
Source position: fgl.pp line 401
public function TFPGMapInterfacedObjectData.Add( |
const AKey: TKey; |
const AData: TData |
):Integer; |
const AKey: TKey |
):Integer; |
AKey |
|
Key value |
AData |
|
Data item |
Index of the new ke
AKey |
|
Key value |
Add adds a new key AKey of generic type TKey with data value AData to the list and returns the position at which the key was added.
If the item could not be added, an EListError exception is raised. If Duplicates is set to dupError and a duplicate key is added, an EListError exception is raised.
|
Indexed access to the keys in the list. |
|
|
Find index of a key in the list. |
|
|
Access to data based on key |
|
|
Indexed access to the data in the list |
|
TFPS.Duplicates |