Program Example
Dim sum, n As Integer
Private Sub Form_Activate()
List1.AddItem "n" & vbTab & "sum"
Do
n = n + 1
Sum = Sum + n
List1.AddItem n & vbTab & Sum
If n = 100 Then
Exit Do
End If
Loop
End Sub
Thursday, May 14, 2009
Program Example Use Do Loop
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment