Do - Until
This is executed at least once because the condition is at the bottom.
Loop Until boolean-expression
Do Until boolean-expression
The following loop does not have any conditions associated with it and therefore would run indefinitely.
These types of loops should be used with caution and always make sure the loop can be terminated.
icount = icount + 1
If icount = 5 Then Exit Do
Nested Do - Until
When used within nested loops Exit Do transfers control to the loop that is one nested level above the loop where the Exit Do occurs.
© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext