Description:
Returns the smallest available index for the indicated dimension of the array.
Syntax:
Long LBound(Array array, [Integer dimension])
Parameters:
array | (Array) the array variable |
dimension | [optional] (Integer) Integer specifies which dimension's lower index is returned.
Use 1 for the first dimension, 2 for the second, etc.
If not set, then 1 is assumed. |
---|
Note:
The
LBound and
UBound functions are used for specifying the array size. Use the
UBound function to find the upper limit of an array dimension. The index for any dimension is always 0.
Example:
VBScriptSelect and copy to clipboard
Dim n
n = LBound(arr, 1)