LBound Function

Syntax:

LBound(arrayvar[, dimension])

Group:

Variable Info

Description:

Returns the lowest index.

Parameters:

Parameter

Description

arrayvar

Return the lowest index for this array variable.

dimension

Return the lowest index for this dimension of arrayvar. If this is omitted then return the lowest index for the first dimension.

Example:

Sub Main
  Dim A(-1 To 3,2 To 6)
  Debug.Print LBound(A) '-1
  Debug.Print LBound(A,1) '-1
  Debug.Print LBound(A,2) ' 2
End
Sub

See Also:

UBound( ).