LOOP Command |
Top Previous Next |
Returns control to the first statement of a looping statement Syntax LOOP Remarks The LOOP command can be located anywhere inside a loop. When used inside nested loops, the command applies to the innermost looping statement only.
Execution control is returned to the first statement. Any incrementing action is performed. For FOR loops, the loop counter is incremented or decremented by the loop interval. In a SCAN loop the next record is selected. If the terminating condition of the loop is met, execution continues on the statement following the loop. See also FOR...ENDFOR Command SCAN...ENDSCAN Command DO WHILE...ENDDO Command |