ClassVisualBasic.Information SyntaxDim result As Integer = UBound(array[, rank])
DescriptionThe UBound function returns the upper limit of the specified dimension of an array. Usage at a Glance
Version DifferencesThe 2005 release of Visual Basic supports a new array declaration syntax that restores the VB 6 style "lower To upper" syntax, as in: Dim someArray(0 To 5) As String However, the specified lower bound must still be 0. See AlsoLBound Function |