EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #68 background imageLoading...
Page #68 background image
Format
Explanation
REM
(remark)
REM
is
a
non-executable
statement
which
is
specified
in
a
program
line
to
cause
the
BASIC
interpreter
to
ignore
the
remainder
of
that
line.
Since
REM
statements
are
non-executable,
they
may
be
included
at
any
point
in
the
program
without
af-
fecting
the
program’s
execution.
REM
statements
are
generally
used
to
make
a
pro-
gram
easier
to
read,
or
to
add
explanatory
notes
to
a
program.
Example
10
REM
***
MZ—800
***
LET
Format
LET
<variable>
=
<expression>
Explanation
The
LET
statement
assigns
the
value
(numeric
or
string)
specified
by
<
expression
>
to
the
variable
or
array
element
specified
by
<
variable
>.
As
shown
in
the
example
below,
LET
may
be
omitted.
Example
10
A=10
10
LET
A=10
20
PRINT
A
20
PRINT
A
30
END
30
END
The
two
programs
above
produce
exactly
the
same
result.
10
LET
N=32
This
statement
assigns
32
to
variable
N.
10
LET
A=A+5
This
statement
adds
5
to
variable
A.
10
LET
B$
="SUNDAY”’
This
statement
assigns
character
string
‘‘SUNDAY”
to
character
variable
BS.
A=1LCR
This
is
an
example
of
a
command
in
the
direct
mode.
1
is
assigned
to
variable
A.
The
following
are
examples
of
incorrect
use
of
the
LET
statement.
20
LET
AS=A+B..............
This
is
invalid
because
different
types
of
variables
(string
and
numeric)
have
been
specified
on
either
sides
of
the
‘‘="’
sign.
20
LET
LOGILK)=LK+1.....
Invalid
because
the
left
side
of
the
statement
is
not
a
numeric
variable
or
array
element.
6-11

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals