Sign in Join
FPDoc Onlineexperiment

TSortedCollection.IndexOf function

Member of TSortedCollectionIn unit Objects

Return index of an item in the collection.

Declaration

pascal
function IndexOf(Item: Pointer): Sw_Integer; virtual

Description

IndexOf returns the index of Item in the collection. It searches for the object based on it's key. If duplicates are allowed, then it returns the index of last object that matches Item.

In case Item is not found in the collection, -1 is returned.

For an example, see IndexOf

Errors

None.

See also

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