RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomBucketList.ForEach Method (TBucketEvent)

Executes a callback for every item in the bucket list.

Pascal
function ForEach(AProc: TBucketProc; AInfo: Pointer = nil): Boolean; overload;
function ForEach(AEvent: TBucketEvent): Boolean; overload;
C++
__fastcall Boolean ForEach(TBucketProc AProc, void * AInfo = nil);
__fastcall Boolean ForEach(TBucketEvent AEvent);

Call ForEach to execute the procedure specified by AProc for each item in the bucket list. ForEach iterates through all the items in the bucket list, passing in each item and its associated data to the specified callback. 

AProc is the callback to execute. 

AInfo has no predefined meaning. It is passed to the AInfo parameter of the callback. 

ForEach returns true if it executes the callback for every item in the bucket list. It returns false if the callback set AContinue to false for some item, causing any subsequent items to be skipped. 

 

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