Hi to all.
I want to get the two lengths of a bidimensional array.
As for example:
Dim mat(10, 5) As Float
Log(mat.Length)
It returns 10.
And if I want to get the 2nd dimension length:
Dim mat(10, 5) As Float
Log(mat(0).Length)
Return error: "Invalid number of indices"
I thought bidimensional arrays are arrays of arrays and you can get the 2nd dimension by getting an individual sub-array length.
Has anybody any suggestion without resorting to create a specific Type to store the two lengths and the array?
Thanx.
I want to get the two lengths of a bidimensional array.
As for example:
Dim mat(10, 5) As Float
Log(mat.Length)
It returns 10.
And if I want to get the 2nd dimension length:
Dim mat(10, 5) As Float
Log(mat(0).Length)
Return error: "Invalid number of indices"
I thought bidimensional arrays are arrays of arrays and you can get the 2nd dimension by getting an individual sub-array length.
Has anybody any suggestion without resorting to create a specific Type to store the two lengths and the array?
Thanx.