Do - While

do 
{

} while (inumber < 5);
Do 

Loop While (inumber = 5)

Do

Loop Until (inumber = 5)

While

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


© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext