Unit 'fgl' Package
[Overview][Constants][Types][Classes][Index] [#rtl]

TFPSMap.Remove

Remove a key/value pair from the map.

Declaration

Source position: fgl.pp line 284

public function TFPSMap.Remove(

  AKey: Pointer

):Integer;

Arguments

AKey

  

Key to remove from the map.

Function result

Index of AKey prior to removal, or -1 if not found.

Description

Remove removes the key/value pair pointing to by AKey from the map. It returns the index of Akey prior to removal from the list. If AKey was not found, -1 is returned.

Errors

None.

See also

TFPSList.Delete

  

Delete an item from the list.

TFPSMap.IndexOf

  

Index of key pointed to by AKey.


Documentation generated on: Nov 23 2024