SoFunction
Updated on 2025-04-11

VBS tutorial: Functions - LBound function

LBound function

Returns the minimum available subscript for the specified array dimension.

LBound(arrayname[, dimension])

parameter

arrayname

Array variable names follow the standard variable naming convention.

Dimension

Indicates which dimension of the lower bound to return. Use 1 for the first dimension, 2 for the second dimension, and so on. If omitteddimensionParameter, default value is 1.

illustrate

LBoundFunctions andUBoundFunctions are used together to determine the size of an array. useUBoundFunctions can find the upper bound of a certain dimension of an array.

The lower bound of any dimension is 0.