Sharp PC-1500 Instruction Manual page 73

Hide thumbs Also See for PC-1500:
Table of Contents

Advertisement

All
and more about Sharp
PC-1500
at http://www.PC-1500.info
Output:
SUPERMAN
In
line
20.
the
contents
of
the
variable
SS ("SUPER")
i
s
"
added" to
the string
"MAN". Notice
that
no
space is
il'lscrtcd during
concatenation.
Several
strings
may
be
concat
e na
ted
in
the
sarne
expression as in
the
f otlo~1ing
example:
Example
2:
10 AS
=
"ER"
20
BS
=
"AND"
30
CS
=
"MOTH"
40
OS
=
"
GR"
50 SS
=
"WRITE
YOUR "+OS
+
BS
60
PR
IN
T
SS +CS
+
AS
Output:
WRITE YOUR GRANDMOTHER
\f!Jhen
concat·
e
nation operations
are perfor
med,
an
internal
t
emporary
ch
aracter storage area is
used to
build the
ne\•J
string.
This
st
o rage
area
has
a
capacity of 80
charac ters.
If
the
nc\•J
string
exceeds
this
l
ength,
an
ERROR 15
\vi
ii occur.
An
illustration of
th is area
during
a concatena
ti
on
opcr.Jtion
follo•.•.,rs:
Example
3
:
X
=
L
EN
("ABC"
+
LEFTS
{"DE
FGHI",
2))
l••TE•I
I
-------------------
--
t
2
1
~BC
-.
~
3
4
ABCDEFGHI
ABC DE
t
t
J
NOTE:
The
t
symbol
represents
an
internal
character
pointer
which
keeps uack of
the amount
of
storage
used
.
1) At the
start of
execution.
the
-stora9e area
\viii
be
cleared and
the
character
pointer
will
be
reset
to the starting posi
tic
)n
.
71
Do not
sale
this PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents