
Variables may represent either a numeric value or a .string.
String
variable names are written with a dollar sign
($)
as
the last character.
For example:
A$.
nSALES REPORT".
The
dollar
sign
is a variable type declaration character, that
is, it ndeclares· that the variable
will
represent a string.
In the Extended and Disk versions,
numeric
variable
names
may
declare
inteqer,
single
or
double precision values.
(All numeric values in SX are single
precision.)
The
type
declaration
characters
for
these
variable
names
are as
follows:
,
Integer variable
1
Single precision variable
t
Double precision variable
The default type for
a
numeric
variable
name
is
single
precision.
Examples of BASIC-SO variable names follow.
In Extended and Disk versions:
PIt
MINIMUM 1
LIMIT'
declares a double precision value
declares a single precision value
declares an integer value
In SX, Extended and Disk versions:
N$
declares a string value
ABC
represents a single precision value
In the Extended and Disk versions of BASIC-SO,
there
is
a
second
method by which variable types may be declared.
The
BASIC-SO statements DEFINT, DEFSTR, DEFSNG and OEFDSL may be
inclcded
in
a
program
to
declare
the types for certain
variable names.
These statements are described in detail in
Section 2.12.
1.6.2
Array Variables
An array is a group or table of
values
referenced
by
the
same
variable name.
Each element in an array is referenced
by an array variable that is subscripted
with
integers
or
integer
expressions.
An
array
variable name has as many
subscripts as
there
are
dimensions
in
the
array.
For
example
V(10)
would reference a value in a one-dimensional
array, T(1,4) would reference a value in
a
two-dimensional
array, and so on.
Summary of Contents for Basic Interpreter Basic 80
Page 1: ...5IA iC intc tit tcl c t ...
Page 2: ......
Page 6: ... ...
Page 10: ......
Page 26: ......
Page 33: ...2 5 Intentially left blank ...
Page 37: ...BASIC SO COMMANDS AND STATEMENTS 2 9 Intentially left blank ...
Page 112: ......
Page 136: ......
Page 140: ......
Page 160: ......
Page 165: ......
Page 166: ......
Page 174: ......
Page 176: ......
Page 182: ......
Page 184: ......
Page 190: ......