| || A function that returns the lower bound of the array. |
Syntax: LBOUND(arrayname [,dimension])
DIM A(-50 TO 100) AS INTEGER
L% = LBOUND(A) '-- Returns -50
If the array has multiple dimensions, you can use the optional dimension argument to check the lower bound of each one.
You might find this keyword unreliable in a SUB/FUNCTION. Just in case you should always keep track of the lower and upper bounds of an array since RapidQ does not check to see if you reference an array out of bounds!
Do not use variable names with a variable symbol with %, !, #, etc.,
DIM A%(-50 TO 100) AS INTEGER
L% = UBOUND(A%) '-- Returns 0