The Visual Basic ''Do ... 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 on a ''If'' statement. The syntax for this type of Do Loop is as follows:
+
The Visual Basic ''Do ... 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 on an ''If'' statement. The syntax for this type of Do Loop is as follows:
'''Do'''<br>
'''Do'''<br>
== Visual Basic Do While Loops ==
== Visual Basic Do While Loops ==
<google>ADSDAQBOX_FLOW</google>
<google>ADSDAQBOX_FLOW</google>
−
Another way to use a ''Do Loop'' is to make use of the ''While'' keyword. A ''Do ... Loop'' which uses the ''While'' keyword will loop as long as the ''While'' expression evaluates to ''True''.
+
Another way to use a ''Do Loop'' is to make use of the ''While'' keyword. A ''Do ... Loop'' that uses the ''While'' keyword will loop as long as the ''While'' expression evaluates to ''True''.