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


Searches for an Item in the collection, based on its TCollectionItem.ID property.


Source position: classesh.inc line 561

public function TCollection.FindItemID(

  ID: Integer



FindItemID searches through the collection for the item that has a value of ID for its TCollectionItem.ID property, and returns the found item. If no such item is found in the collection, Nil is returned.

The routine performs a linear search, so this can be slow on very large collections.

See also



Indexed array of items in the collection.



Initial index of this item.

Documentation generated on: Jun 22 2020