Changes

Jump to: navigation, search

Visual Basic Do ... Loops

381 bytes added, 19:41, 6 August 2007
Creating a Visual Basic Do ... Loop
As with the previous example, the second loop will not execute because the the intTotal variable already exceeds 10 as a result of the previous loop.
 
In summary, the Visual Basic ''Do ... Loop'' structure provides a way to loop a number of time when it is not possible to know in advance how many times the loop may need to iterate. When a loop is required to be performed a pre-determined number of times, then a ''For ... Loop'' may make more sense. For information on Visual Basic ''For'' loops see [[Visual Basic For Loops]].

Navigation menu