qadeer37
Well-known member
Dim TwoDArray(1, 3) As Integer
For i As Integer = 0 To ThreeDArray.Length - 1
TwoDArray(i, i) = i + 1
ListBox1.Items.Add(ThreeDArray(i, i))
Next
This adds 1 and 2 to list. My question is why does the first element in the 2d array determines the length of an array and if we want to get the length 2nd index then what will be the method for that?
For i As Integer = 0 To ThreeDArray.Length - 1
TwoDArray(i, i) = i + 1
ListBox1.Items.Add(ThreeDArray(i, i))
Next
This adds 1 and 2 to list. My question is why does the first element in the 2d array determines the length of an array and if we want to get the length 2nd index then what will be the method for that?