OPTION BASE

From QB64 Wiki
Revision as of 04:51, 28 August 2009 by 72.95.147.221 (talk) (Created page with ''''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 …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)