help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TSortedCollection.IndexOf

Return index of an item in the collection.

Declaration

Source position: objects.pp line 436

function TSortedCollection.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 TCollection.IndexOf

Errors

None.

See also

TSortedCollection.Search

  

Search for item with given key.

TSortedCollection.Compare

  

Compare two items in the collection.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505