For Next Loop
A For Next loop is used to loop over a collection of items a specified number of times.
Dim myLoop
For myLoop = 1 To 20
WScript.Echo myLoop
Next
In this example, we will loop 20 times, starting from the number 1. This script will echo out 1, then 2, then 3 and so on, until number 20 is reached.
Become a Member
Start learning about VBScript right now!
Become a Member and begin downloading our VBScript Videos Immediately!
These VBScript Videos are from our VBScript Product
|