RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomBucketList.Find Method

Returns the data associated with a specified item.

Pascal
function Find(AItem: Pointer; out AData: Pointer): Boolean;
C++
__fastcall Boolean Find(void * AItem, void * AData);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!