Do Loop
The Do .. Loop statement is used to create an iteration or
repetition of code. It is the most flexible looping mechanism and
allows you to create Do While or Do Until loops.
The statement Exit Do will force the execution of the
innermost loop to cease immediately.
The Do While loop will repeat the enclosing code as long as
the condition is true. The Do Until loop will repeat the
enclosing code as long as the condition is false.
I = 3 Do While I > 0 Response.Write "I = " & I I = I - 1 Loop
I = 0 Do Until I = 6 Response.Write "I = " & I If I = 3 Then Exit Do I = I + 1 Loop
|
 |

|