FIT 100
© Copyright University of
Washington 1999-2000
An Example
vAn easy way to get the idea of iteration is to print
out the
iteration variable ...
Option Explicit
Private Sub Form_Click()
Dim iterateVar As Integer
iterateVar = 0
Do While iterateVar < 10
iterateVar = iterateVar + 1
Print (“iterateVar is” & iterateVar)
Loop
End Sub
Declaration of iteration variable
Initialization of iteration variable
Termination Condition
Loop Body
Increment of the
iteration variable