TCustomBucketList.ForEach¶
Loop over all items.
Declaration¶
Source position: contnrs.pp line 570
public
function ForEach(AProc: TBucketProc; AInfo: Pointer=Nil) : Boolean;
function ForEach(AProc: TBucketProcObject) : Boolean;
Description¶
Foreach loops over all items in the list and calls AProc, passing it in turn each item in the list.
AProc exists in 2 variants: one which is a simple procedure, and one which is a method. In the case of the simple procedure, the AInfo argument is passed as well in each call to AProc.
The loop stops when all items have been processed, or when the AContinue argument of AProc contains False on return.
The result of the function is True if all items were processed, or False if the loop was interrupted with a AContinue return of False.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| TCustomBucketList.Data | Associative array for data pointers. |