Loop structure can be used in a variety of different ways. The first, basic method involves a simple Do loop with an Exit statement called based. In this tutorial you will learn about Visual Basic Do Loops, you will learn about Then we have a Do Until Statement which loops until myNumber = 5; Next we. Use a Do Loop structure when you want to repeat a set of statements an indefinite number of times, until a condition is satisfied. If you want to. There are three loop statements in Visual Basic, For, Do while and Do until. This note discusses Do Until loops. The general form of a Do Until loop is: Do Until. Loop Statement. The Do While Loop is used to execute statements until a certain condition is met. The following Do Loop counts from 1 to Dim number As. In Visual Basic you can also have more than one exit statement. Dim index As Integer = 0 Do Debug. Dim x as integer do while xLoop This web page explains how to use a do while loop in pethydro.org Learn to use various kinds of loop in Visual Basic. The Do Loop. The Do Loop statements have four different forms, as shown below. Visual Basic loop structures allow you to run one or more lines of code repetitively. You can repeat the statements in a loop structure until a. End While Statement or Do Loop Statement works well when you don't know in advance how many times to run the statements in the loop.