Main sections
BOUNDS()
n% = BOUNDS(array#$[], ndim%)
Returns the size of the array array#$[] for the dimension ndim%. The result is the size that has been set previously with the DIM or REDIM command.
As an abbrevation you can use LEN(array#$[]) instead of BOUNDS(array#$[], 0).
// BOUNDS()
DIM a[5][7]
PRINT BOUNDS(a[], 0), 0, 100 // = 5
PRINT LEN(a[]), 0, 120 // = 5, as above
PRINT BOUNDS(a[], 1), 0, 140 // = 7
SHOWSCREEN
MOUSEWAIT