i know that do while and loop until just check at different times, but what is the difference between them and a while...wend loop
Printable View
i know that do while and loop until just check at different times, but what is the difference between them and a while...wend loop
While-Wend can't be stopped if I'm not mistaken. In the Do/While/Until you can stop the loop with Exit Do.
but i was told that you arent supposed to use exit do anyway and that you are just supposed to use a flag, bad form or smething like that
Sure it's better, but you still have the option. Just like GoTo. You shouldn't use it, but it still exists as a feature :)
While-Wend is a "left-over" from early versions of BASIC and isn't recommended to be used any longer (even by the creators). It doesn't allow easy way out of the loop such Exit Do. It's still being used unfortunately but I think mostly by the "very old timers" (with all do respect) and those that were taught by them... :)Quote:
Originally Posted by notquitehere188