System.Contnrs.TCustomBucketList.Find

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Find(AItem: Pointer; out AData: Pointer): Boolean;

C++

bool __fastcall Find(void * AItem, /* out */ void * &AData);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TCustomBucketList

Description

Returns the data associated with a specified item.

Call Find to retrieve the data associated with an item in the list. Calling the Find method differs from reading the Data property in that it does not raise an exception if the item is not in the bucket list.

AItem is the item to find in the bucket list.

AData returns the data associated with AItem.

Find returns true if AItem is in the bucket list, false otherwise. The value of AData is not set if Find returns false.

See Also