CNTBAR()

Exit

This command works only within a loop. It immediately exits the loop and continues the program with the statement following the loop-closing command (ENDDO, ENDFOR/NEXT, or ENDSCAN).

We don't use EXIT except in a few closely controlled circumstances because it makes code too hard to maintain. This is a "Beam me up, Scotty" command which can lead to spaghetti code.

See Also

Do While, For, For Each, Loop, Scan


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net