| ProLinga-4GL Reference Manual |
|---|
FOR — Execute a block of logic commands a specified number of times.
FOR counter = begin_value TO end_value src_data_ref [STEP increment]
The FOR command executes a block of logic commands a specified number of times, or until a BREAK command is reached. The CONTINUE command can also be used to stop processing the current iteration and to jump to the beginning of the loop.
| Data reference of a numeric type which servers as a loop counter. |
| Argument containing the initial start value. |
| Argument containing the end value. When this number is reached, the loop structure will be terminated. |
| The value of this argument will be added to the counter after every loop iteration. When STEP is not defined, the default of 1 will be used. |
| << FOCUS Command | FOREACH Command >> |