Information.LBound Method (Array, Int32)
Returns the lowest available subscript for the indicated dimension of an array.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Required. Array of any data type. The array in which you want to find the lowest possible subscript of a dimension.
Optional. Integer. The dimension for which the lowest possible subscript is to be returned. Use 1 for the first dimension, 2 for the second, and so on. If Rank is omitted, 1 is assumed.
Return ValueType: System.Int32
Integer. The lowest value the subscript for the specified dimension can contain. LBound always returns 0 as long as Array has been initialized, even if it has no elements, for example if it is a zero-length string. If Array is Nothing, LBound throws an ArgumentNullException.
The following example uses the LBound function to determine the lowest available subscript for the indicated dimension of an array.
Available since 1.1
Available since 2.0