Sharp PC-1500A Instruction Manual page 73

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

Advertisement

All
and
more
about
Sharp
PC-1500 at
http:/lwww.PC-1500.info
Output:
SUPERMAN
In line
20, the
con tents of
the variable
SS
("'SUPER"') is
"'ad<fed"'
to
the
stri
ng
'"MAN".
Notice
that no space is
inserted
during concatenation. Several
strings
may be concatenated
in
the
same
expression
as
in the
foll
oi.ving
e
xam ~1lc:
Ex.,mple 2:
10
AS
'"ER"
20
BS
=
'"AND"'
30
CS
=
"MOTH"
40 0$
=
"GR"
50
SS
5
'
WRITE
YOUR
"+OS+
BS
60
PAINT
SS•·
C$
+AS
Output:
WRITE
YOUR GRANDMOTHER
When concatenation
operations
are performed, an
internal
temporary character storage area
is
used
10
buil
d the new
string
.
This
storage area h
as a capacity
of
BO
characters.
If the
new
str ing
exceeds
this
length,
an
ERROR
15
will occur.
An
illuuration
of
this
area during
a
concatenation
operation follo\•1s
:
Example
3:
X -
LEN
("ABC"
+
LE FTS ("'DEFGH
I"
, 2))
l lNTE•l
[_
t
2
l
ABC
l
t
3
I
ABCDE
FGH
I
~
t
4
ABC
DE
~
t
5
[
l
t
NOTE
:
The
t
sym
bol represent
s an
internal
character
poin
ter
which
keeps
track
o
f
the
amount
of
storage
used.
1)
At
the
start
of
execution,
the storage
area
will be
cleared and the
character poin
ter
w ill
be
reset to
the
starting pasition.
71
Do not
sale
this
PDF
!!!

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents