Hi!
I wanted to assign value (in the code of my Visual Basic program) to a variable whose type is array within array.
I have quite a lot of elements there, so it's not very easy to do it like this:
Code:
arrVar(0,0) = 2
arrVar(0,1) = 0
arrVar(0,2) = 1
..
arrVar(0,10) = 0
arrVar(1,0) = 3
arrVar(1,1) = 1
arrVar(1,2) = 0
..
arrVar(7,9) = 8
arrVar(7,10) = 2
I wanted to do it with one assignment operator instead. I tried this, but it didn't work:
Code:
arrVar = Array((2, 0, 1, .., 0), (3, 1, 0, ..), .., (.., 8, 2))
It says a closing bracked is required right after the first digit (2).
So, what is the correct way to do it, can anyone tell, please?
Thanks!
Janis
__________________
The signature chooses the wizard, not the wizard chooses the signature...
|