LBound Function

Returns the smallest available subscript for the indicated dimension of an array.

Syntax

LBound(arrayname[, dimension])

Arguments

  • arrayname
    Name of the array variable; follows standard variable naming conventions.

  • dimension
    Whole number indicating which dimension's lower bound is returned. Use 1 for the first dimension, 2 for the second, and so on. If dimension is omitted, 1 is assumed.

Remarks

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 lower bound for any dimension is always 0.

Requirements

Version 1

See Also

Dim Statement
ReDim Statement
UBound Function
IsArray Function
Array Function

Private Statement
Public Statement
Erase Statement
Bookmark link 'vsfctlbound' is broken in topic '{"project_id":"9fb4a69f-0172-4157-a999-d1266f74240f","entity_id":"6efa4ad0-0941-4349-a680-236c3200794e","entity_type":"Article","locale":"en-US"}'. Rebuilding the topic '{"project_id":"9fb4a69f-0172-4157-a999-d1266f74240f","entity_id":"6efa4ad0-0941-4349-a680-236c3200794e","entity_type":"Article","locale":"en-US"}' may solve the problem.