LBOUND: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
m (Removed protection from "LBOUND") |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 21:45, 1 June 2022
The LBOUND function returns the smallest valid index (lower bound) of an array dimension.
Syntax
- result% = LBOUND(arrayName[, dimension%])
Description
- arrayName specifies the name of the array.
- dimension% specifies the dimension number, starting with 1 for the first dimension.
- If omitted, dimension% is assumed to be 1.
- If dimension% is less than 1 or is greater than the number of dimensions, a subscript out of range error occurs.
- LBOUND and UBOUND are used to determine the range of valid indexes of an array.
Examples
DIM myArray(5) AS INTEGER DIM myOtherArray(1 to 2, 3 to 4) AS INTEGER PRINT LBOUND(myArray) PRINT LBOUND(myOtherArray, 2) |
0 3 |
See also