Here's a snippet:
Private Sub Form_Load()
For n = 1 To 10 Step 1
Print "test..."
Next n
End Sub
Loops are control structures. The for loop goes something like this:
For "n" equaling 1, go up to 10 by 1's. "Next" completes the loop.
For is needed.
To is needed.
Step is optional.
Next is needed.
VB is a piece of sh!t.
|