RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBucketList.BucketFor Method

Returns the index of the bucket in which a specified item belongs.

Pascal
function BucketFor(AItem: Pointer): Integer; override;
C++
virtual __fastcall int BucketFor(void * AItem);

TBucketList uses BucketFor internally to determine the bucket into which an arbitrary item belongs.  

AItem is the identifier of the item for which you want to find a bucket. 

BucketFor returns the index of the bucket in the Buckets property array. 

 

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