[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Loop over all items.
Source position: line 0
public function TCustomBucketList.ForEach( |
AProc: TBucketProc; |
AInfo: Pointer = nil |
):Boolean; |
AProc: TBucketProcObject |
):Boolean; |
AProc |
|
Callback handler to call for each item in the list. |
AInfo |
|
Extra info to pass to the procedural variant of the method. |
True if all items were processed, False if the loop was stopped.
AProc |
|
Callback handler to call for each item in the list. |
True if all items were processed, False if the loop was stopped.
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.
None.
|
Associative array for data pointers |
lazarus-ccr.sourceforge.net |