Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
LBOUND, UBOUND Functions
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Return the lower and upper bound (smallest or largest available subscript)
for the specified array dimension.
LBOUND(array[,dimension%])
UBOUND(array[,dimension%])
■ array The name of the array.
■ dimension% Indicates the array dimension whose lower or upper
bound is returned. Use 1 for the first dimension, 2
for the second dimension, etc. The default is 1.
Example:
DIM a%(1 TO 3, 2 TO 7)
PRINT LBOUND(a%, 1), UBOUND(a%, 2)
See Also ◄DIM, REDIM►