Hi,
I'd like to create a two-dimensional array, and loop through it using VB Script.
Can anybody answer the following?
- Is there any syntax for making one or more dimensions of a two dimensional array dynamic?
I'm okay with creating a static two dimensional, and a dynamic "regular" array- but I don't know how
to create a dynamic two dimensional.
- I need some help with the loop too. In "pseudo-code" what I'd like to achieve is:
for each value in the first dimension of the array {
for each value in the second dimension of the array{
Perform Action (I know what I want to do here)
}
}
I was hoping there was loop type I could use that went through each element of each dimension of the
array, without having to "hard code" a static number of loops.
Alternatively, I was after function that could determine the number of elements that had been populated in the array, which I could then assign to a variable and then loop through that many times (although I'd
prefer to loop through the other way if possible)
Any help appreciated.
Cheers,
Farfo.
Start Free Trial