LOOP Command
Collapse the table of content
Expand the table of content

LOOP Command

Returns program control directly to the beginning of a looping structure.


You can place LOOP anywhere between DO WHILE and ENDDO, anywhere between FOR and ENDFOR or FOR EACH and ENDFOR, or anywhere between SCAN and ENDSCAN.

The LOOP command returns control directly to the DO WHILE, FOR, or FOR EACH clause without executing the statements between LOOP and ENDDO or ENDFOR. The counter is incremented or decremented as if the END... statement were reached.

Community Additions

© 2016 Microsoft