Open main menu

RAD Studio API Documentation β

System.Classes.TCollection.FindItemID

Delphi

function FindItemID(ID: Integer): TCollectionItem;

C++

TCollectionItem* __fastcall FindItemID(int ID);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

Returns the item with the specified 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++).

See Also