Dim MyArray(,) As Integer
Printable View
Dim MyArray(,) As Integer
Hi WideAwake.
Ok, but how can I pass the initial values for the 2 dimensions at the same line? Can I put something like {1,2,3},{1,2,3} ?
Thanks.
Dim MyArray(3,3) As Integer
Would give you a 3x3 block
Or maybe at the begining of your form you could have:
Dim MyArray(,) As Integer
Then maybe you need to run a routine before you know the size, so once the size has been found you could do something like:
ReDim MyArray(amount-1, rows) as integar
Code:Dim A(,) As String = {{"0,0", "0,1"}, {"1,0", "1,1"}}