I may have posted a blank post accidentally. Sorry
I am coming over to VB.NET from C++/C# and am confused about the UBound
function.
Example code:
Dim i As Integer
Dim myarray(6) As Integer
i = UBound(myarray)
I would expect that myarray is of length 6 and that the array
subscripts run from 0 to 5. The doc. for UBound says:
Returns the highest available subscript for the indicated dimension of
an array.
It also says:
Since array subscripts start at 0, the length of a dimension is greater
by one than the highest available subscript for that dimension.
So...I would expect the value of i above to be 5 but instead it is 6.
What's up??
-jr