TFPSMap.Add

Add a key, value pair to the map.

Declaration

Source position: fgl.pp line 275

public 
  function Add(AKey: Pointer; AData: Pointer) : Integer;
  function Add(AKey: Pointer) : Integer;

Description

Add adds the memory pointed to by AData to the map using the memory pointed to by AKey as the key. If no data is specified, it allocates a slot for AKey and returns a pointer to that slot.

Errors

If the maximum amount of values is reached, Add will raise an EListError exception.

See also

Name Description
TFPSMap.IndexOf Index of key pointed to by AKey
TFPSMap.Insert Insert a new slot for key and associated data item in the list

results matching ""

    No results matching ""