EasyManua.ls Logo

Laser 128 - Variable Names

Laser 128
255 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...
INTRODUCTION
,
or
they
can
take
up
new
values
as
a
result
of
the
program's
execution.
For
instance,
in
the
next
example,
the
value
of
I
varies
from
1
to
10.
] 10
FOR
I=
1
TO
10
] 20
PRINT
I
] 30
NEXT
When a BASIC
program
starts
running
,
all
variables
that
have
no
explicitly
assigned
values
(as
in
the
first
example)
are
assumed
to
be zero.
1.4
VARIABLE
NAMES
BASIC
variable
names
must
start
with
an
alpha
be
tic
letter.
They
can
be
up
to 40
characters
long,
and
can
represent
either
numbers
or
strings.
Strings
are
groups
of
letters
and
symbols.
The
variable
names
cannot
be
re
se
rv
ed
words
-
for
a
list
of
reserved
words
see
the
Appendices
-
nor
can
they
have
reserved
words
embedded
rn them.
For
instance
ADIMMY
contains
the
reserved
word
DIM,
and
is
not
an
allowable
variable;
and
DIMMY
starts
with
the
reserved
word,
and
is
not
permissible.
Reserved
words
include
all
the
BASIC
commands,
statements,
function
s,
and
operator
names
.
11-4

Table of Contents