Sign in Join
FPDoc Onlineexperiment

TFPHashObjectList.IndexOf function

Member of TFPHashObjectListpublicIn unit Contnrs

Return the index of the object instance.

Declaration

pascal
function IndexOf(AObject: TObject): Integer

Arguments

AObject

Data object instance to search for.

Function result

Index of Item in the list.

Description

IndexOf returns the index of the first occurrence of object instance AObject. If the object is not in the list, -1 is returned.

The performed search is linear, and not very efficient.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.