EasyManua.ls Logo

Texas Instruments TI-99/4A - Page 132

Texas Instruments TI-99/4A
204 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
OPTION BASE
OPTION BASE f
~}
The
OPTION
BASE
statement
allows you to
set
the lower limit
of
array
subscripts
at
one
instead
of zero. You
can
omit
the
OPTION
BASE
statement
if
you
want
the
lower limit of the
subscripts
to be
zero.
If
you include
an
OPTION
BASE
statement
in your
program,
you
must
give it a lower line
number
than
any
DIMension
statement
or any reference to
an
element
10
any
array.
You
may
have
only one
OPTION
BASE
statement
in a program.
and
it
applies
to
a11
array
subscripts
in your
program
Therefore,
you
cannot have
one
array
subscript
beginning with 0
and
another
beginning with 1 in the
same
program.
If
you use
some
integer
other
than
one
or
zero in the
OPTION
BASE
statement,
the
computer
will
stop
the
program
and
print
"INCORRECT
STATEMENT.'·
11·112
Examples:
>NEW
>100
OPTION
BASE
1
>110
VIM
X(5,5,5)
>120
X(1,0,1l"3
>130
PRINT
X(1,0,1l
>140
END
;'RU
N
*
BAD
SUBSCRIPT
IN
120
>1
00
ENTER
>RU
N
3
••
DONE
User's Reference Guide

Other manuals for Texas Instruments TI-99/4A

Related product manuals