Chapter
9
I
Introduction to BASIC Keywords
Some keywords have sample programs
that
further explain their
use
or
illustrate useful applications that may not be readily ap-
parent.
Important
Note:
BASIC for MS-DOS requires that
keywords be delimited by spaces. This means that you
must leave a space between a keyword and any varia-
bles, constants,
or
other keywords. The only exceptions
to
this rule are characters that are shown
as
part
of
the syntax of the keyword.
For example, if you type:
DELETE.=
BASIC returns a “Syntax error.” You must leave a
blank space between the word DELETE and the
period.
Terms
Used
in
Chapter
10
line
integer
string
number
A numeric expression that identifies a
BASIC program line. Each line
has
a
number in the range
0
to
65529.
Any integer expression. It may consist of
an integer or of several integers joined by
operators. Integers are whole numbers
and may be in the range
-32768
to
32767
unless otherwise specified.
Any string expression. It may consist of a
string, several strings joined by opera-
tors,
or
a string variable.
A
string is
a
sequence of characters that is
to
be taken
verbatim.
Any numeric expression.
It
may consist of
a
number, several numbers joined by op-
erators,
or
a numeric variable.
dummy number
or
dummy string
A number
(or
string) used in an expres-
sion
to
meet syntactic requirements, but
the value of which
is
insignificant.
86