Logo

Hacker’s Guide to Visual FoxPro
An irreverent look at how Visual FoxPro really works. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro.

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