EasyManua.ls Logo

Sharp MZ-800 - Page 186

Sharp MZ-800
221 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...
String
control
functions
—_
LEFTS$
10
A$=LEFT$
Substitutes
string
variable
X$
(from
beginning
to
Nth
character)
for
(X$,N)
string
variable
A$.
It
doesn’t
matter
whether
N
is
a
constant,
variable
or
numerical
formula,
MIDS
20
B$=MID$(X$,
Substitutes
string
variable
X$
(from
Mth
character
to
N
charater)
for
M,
N)
string
variable
BS.
RIGHTS
30
C$=RIGHT$
Substitutes
string
variable
X$
(from
end
to
N
character)
for
string
(X$,
N)
variable
C$.
SPC
40
D$=SPC
(N)
Substitutes
N
number
of
spaces
for
string
variable
D$.
CHRS
60
F$=CHRS(A)
Converse
to
the
ASC
function,
substitutes
ASCII
code
characters
which
are
equivalent
to
the
value
of
real
number
A
for
string
variable
F$.
It
doesn’t
matter
whether
A
is
a
constant,
variable
or
numerical
formula.
ASC
70
A=ASC
(X$)
Substitutes
the
value
of
the
ASCII
code
of
the
first
character
of
string
variable
X$
for
variable
A.
STRS
80
N$=STR$
(1)
Converts
to
the
VAL
variable,
substitutes
the
numerical
variable
I
as
if
it
were
a
string
for
string
variable
N$.
VAL
90
1=VAL
(N$)
Substitutes
the
numerical
string
of
string
variable
NS
as
if
it
were
a
number
for
variable
I.
LEN
100
LX
=LEN
Substitutes
the
character
length
(character
number)
of
string
variable
(X$)
X$
for
variable
LX.
110
LS=LEN
Substitutes
the
sum
of
the
character
length
of
string
variables
X$
and
(X$+Y¥$)
YS
for
variable
LS.
Tab
function
TAB
10
PRINT
TAB
Displays
the
value
of
variable
A
at
the
X
+
1
character
position
(X);A
counting
from
the
left
edge
of
the
screen.
Arithmetic
operations
The
calculation
priority
is
of
white
figures
on
dark
background
at
left
side,
but
the
calculation
of
figures
in
parentheses
(
)
has
even
higher
priority.
f
10
A=X1TY
Substitutes
the
XTY
calculation
result
for
variable
A.
(Note,
however,
(power)
that
an
error
occurs
if
Y
is
not
an
integral
number
when
X
is
a
nega-
tive
number
at
XTY.)
-
10A=-B
0—B
is
a
subtraction;
note
that
the
“‘—"’
of
—B
is
a
minus
sign.
{minus
sign)
*
10
A=X*Y
Substitutes
the
multiplication
result
of
X
and
Y
for
variable
A.
(multiplication)
4
10
A=X/Y
Substitutes
the
division
result
of
X
and
Y
for
variable
A.
(division)
+
10
A=X+Y
Substitutes
the
addition
result
of
X
and
Y
for
variable
A.
(addition)
-
10
A=X-Y
Substitutes
the
subtraction
result
of
X
and
Y
for
variable
A.
(subtraction)
9-11

Other manuals for Sharp MZ-800

Related product manuals