Having just about grasped MD arrays I now have the following problem.
Previously, I would build an array (eg arrCars), and then pass through it with a "for each, next" loop.
eg:
How do I do the same thing in a MD array, and how do I refer to the element I want?
here's the aircode:
Previously, I would build an array (eg arrCars), and then pass through it with a "for each, next" loop.
eg:
Code:
Dim arrCars(1)
arrCars(0) = "Ford"
arrCars(1) = "Vauxhall"
For each objcar in arrCars
wscript.echo objCar
Next
How do I do the same thing in a MD array, and how do I refer to the element I want?
here's the aircode:
Code:
Dim arrCars(1,1)
arrCars(0,0) = "Ford"
arrCars(0,1) = "Blue"
arrCars(1,0) = "Vauxhall"
arrCars(1,1) = "Green"
For each entry in the array arrCars
wscript.echo Each Car and its Colour
Next