while
This tests the condition at the top.
while (inumber < 5)
{
inumber++;
break;
}
Do While (inumber < 5)
inumber = inumber + 1
Exit While
Loop
Do Until (inumber = 5)
inumber = inumber + 1
Loop
While
Exit While
End While
VB includes an additional While-End While loop. This loop is identical to the Do-While loop.
Continue
The continue statement transfers execution to the next iteration within the loop
while (inumber < 5)
{
if (true) {
continue;
}
}
Do While (inumber < 5)
If (True) Then
Continue While
End If
Loop
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext