TFPSMap.IndexOfData

Index of data item AData

Declaration

Source position: fgl.pp line 279

public 
  function IndexOfData(AData: Pointer) : Integer;

Description

IndexOfData returns the index of the element with data pointed to by AData. It returns -1 if the data item was not found. The search is always performed using a linear search.

See also

Name Description
TFPSMap.Data Indexed access to the locations of all data items
TFPSMap.Find Find data using the associated key
TFPSMap.IndexOf Index of key pointed to by AKey
TFPSMap.Keys Indexed access to the locations of all keys