The variable counter is the numeric value being incremented or decremented. When this loop executes it will display twelve dialog box messages, each containing the product of multiplying five times the counter as it runs from 1 to 12. In this example, the variable counter is incremented by 1 with each loop. Next counter This slight modification to the loop results in only the products of the odd numbers between 1 and 12 being displayed. The discussion of collections and their use is outside of the scope of this tutorial.
Next structure is detailed elsewhere in the book.
Loop structure repeats a block of statements until a specified condition is met. While A Do loop that contains the While keyword will be performed as long as the condition being tested is true. The difference between these two formats is that the first example may never perform the statements included within its structure while the second example will always perform its statements at least once. Until A Do loop that contains the Until keyword will continue to loop as long as the condition being tested is false. Loop the first time.