Dim SomeArray(3, 4, 5) As SomeObject
Dim UbberBounds(SomeArray.Length) As Integer
For Counter As Integer = 0I To SomeArray.Length
UpperBounds(Counter) = SomeArray.GetUpperBound(Counter)
Next Counter
pbizzle said:Array.getupperbounds(1) would that get the upperbounds of the First Dimension
So rank 0 is the first dimension. And speaking of rank, have a look through this: Array Members (System)help said:dimension
Type: System..::.Int32
A zero-based dimension of the Array whose upper bound needs to be determined.
JBs example should then behelp said:Length Gets a 32-bit integer that represents the total number of elements in all the dimensions of the Array.
Rank Gets the zero-based rank (number of dimensions) of the Array.
For dimension As Integer = 0 To someArray.Rank - 1
They cannot. A multidimensional array and a jagged array are inherently different things. A multidimensional array is a matrix and inherently rectangular, while a jagged array is actually a one-dimensional array of one-dimensional arrays. The syntactic difference is subtle but the semantic difference is much greater.Because multidimensional arrays can be jagged
Dim myMultiDimesionalArray As Object(,)
Dim myJaggedArray As Object()()