Description:
Returns the smallest available index for the indicated dimension of an array.
Syntax:
Long LBound(Array array, [Integer dimension])
Parameters:
array | (Array) the array variable |
---|
dimension | [optional] (Integer) Integer indicating 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 function is used with the
UBound function to determine the size of an array. 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)