You are here: Symbol Reference > MtxForLoop Namespace > Functions > MtxForLoop.DoForLoop Function
MtxVec VCL
ContentsIndex
PreviousUpNext
MtxForLoop.DoForLoop Function

Call this function to initiate threaded for-loop.

Pascal
function DoForLoop(IterMin: integer; IterMax: integer; MyLoop: TForLoopFunEvent; Threads: TMtxForLoop; const Context: array of TObject): boolean; overload;

The MyLoop method pointer must be a function (not object method). This is the function that will be called (IterMax - IterMin + 1) times. Threads parameter requires a TMtxForLoop object and Context can be used to pass any parameters to the threaded function. The computational load of MyLoop function is allowed to vary from one iteration to the next.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!