views:

33

answers:

1

I have a one dimensional array in VBScript that I would like to run through but have the ability to advance by 2,3,4 etc. on each iteration of the loop. In C this would be trivial as...

for (int i = 0; i < 10; i+= 2)
+8  A: 

Like this:

For i = 0 To 9 Step 2
SLaks
Yeh that's the stuff. Thanks!
Rob Segal