Partager via


LOOP Command

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

LOOP

Remarks

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.

See Also

Reference

DO WHILE ... ENDDO Command

FOR ... ENDFOR Command

FOR EACH ... ENDFOR Command

SCAN ... ENDSCAN Command

EXIT Command

Other Resources

Commands (Visual FoxPro)