QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The LBOUND function returns the smallest valid index (lower bound) of an array dimension.

Syntax

result% = LBOUND(arrayName[, dimension%])

Description

Example(s)


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