07-01-2009 09:41 AM
Now I'm totally confused.
Folks, do you want to make me crazy ?
In Visual Basic it's "exit" in C it's "break".
The enclosing loop is immediately checked out.
Look at the Visual Basic Code.
07-01-2009 12:25 PM
The basic differences between for loops and while loops is that a for loop runs a limited number of times (as set by N or an auto-indexing input), while a while loop runs an unlimited number of times while a condition is met (stop if F) or until a condition is met (stop if T).
A while loop runs at least 1 time while a for loop can run 0 times, but if a run (or iteration) is started all the code inside the loop has to be executed.
So basically there is no such thing as an break or exit.
Ton
07-08-2009 08:13 AM