Option Base - Sanyo MBC-550 Series User Manual

Table of Contents

Advertisement

OPTION BASE
Purpose
The OPTION BASE instruction determines the smallest
subscript value.
Form
OPTION BASE <n>
Description
(1) <n> is numeric constant and can be either 0 or 1.
(2) V/hen an array is declared by the DIM instruction,
the elements from 0 through the declared subscsription
maximum value are reserved. If DIM A (20) is specified,
21 elements, A( 10) to A(20), are reserved in the memo­
ry. This instruction is used to reserve only 20 ele­
ments A( 1) to A(20).
(3)
Only one OPTION BASE statement can be written in a
program.lt must be executed before any array declara­
tions or reference.
(BASEs 0 and 1 cannot be mixed
within a program.)
(4) Similarly when the programs are connected using the
CHAIN instruction, arrays in the CHANINed programs must
all adopt the same BASE.
3-71

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents