In Visual Basic, all loops have a similar purpose that make block of statements to repeat a number of times.
The Do Until and the Do While loop is a bit similar to each other. The only difference of the Do Until loop is, it uses a slightly different syntax.
Take note that if you are not careful with the syntax of Do Until it will result in an infinite Loop
This is the example in doing Do Until Loop.
- Dim i As Integer = 0
- Do Until i = 10
- i += 1