For Each Loop
A For each loop lets you perform an action on an object, then perform the same action on a different object, and keep doing this, until there are no more objects.
Dim arrShopping
Dim str
arrShopping = Array("Bread","Milk","Apples","Carrots","Cereal")
For Each str In arrShopping
MsgBox str
Next
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
|