OPTION BASE

From QB64 Wiki
Revision as of 04:55, 28 August 2009 by 72.95.147.221 (talk)
Jump to navigation Jump to search

OPTION BASE 1 is used to set the lowest array element to 1.

Otherwise, arrays will be dimensioned from element 0 if you DIM just the upper bounds.

It should be set before any arrays are dimensioned (DIM).

Alternative: DIM arrays using upper and lower bounds as shown:

DIM Array(1 TO 200)


See also: UBOUND LBOUND