RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollection.FindItemID Method

Returns the item with the specified ID.

Pascal
function FindItemID(ID: Integer): TCollectionItem;
C++
__fastcall TCollectionItem FindItemID(int ID);

The FindItemID method returns the item in the collection whose ID property is passed to it as a parameter. If no item has the specified ID, FindItemID returns nil (Delphi) or NULL (C++). 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!