Loop

This command ends the current pass in a loop, taking control directly to the loop-ending command (ENDDO, ENDFOR/NEXT, ENDSCAN). Then, the loop condition is evaluated and execution proceeds normally.Don't use LOOP. It creates spaghetti code and makes maintenance much harder. LOOP can always be replaced by an IF that skips the remaining code in the loop.

See Also

Do While, Exit, For, For Each, Scan


Back to Table of Contents

Copyright © 2002-2018 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. Click for license .