EasyManua.ls Logo

Sharp PC-1500 - More on Character Strings; Dimensioni Ng Strings; Concatenation

Sharp PC-1500
169 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
Loading...
A
ll
and more about Sharp PC-1500
at
http://www.PC-1500.info
col
um
n 1
col
u
mn
3 column 4
row 0 T (0.
01
T
10.
1)
T
(0
, 21 T 1
0,
3)
rO\;\l
T 11.
01
T
11
, 1) T 11, 21 T I
1.
3)
T
12.
01
T (2, 1)
T
(2.
21
T 12.
3)
NOTE: T
...
vo
·d i
mcns
i
ona
l
ar
rays c
an
rapidly
cat
up
sto
rage spa
ce
.
For
examp
le, an array with
25
r
oi.vs
and
35
columns
uses
87
5 storage l
ocat
ions!
Arra
ys arc very
powerf
ul prog
ra
mmi
ng
too
ls.
For
a m
or
e co
rn
plete
tr
eatmerl(
of
ar
ays,
we
recomme
nd sup
pl
e mentary r
ead
ing.
B.
MORE
ON
CHARACTER STRINGS
B.1. D
IMe
ns
ioni
ng
St
rings
Ch
aracter
st
r'i
n
gs
are
linli
ted.
by
de
fault, to sixt
ee
n characters
in
l
en
g
th
. By dimensioning a
character
stri
ng it is possible
to
cr
eate
a
st
ri
ng
\Vhose l
engt
h is up
to
80
cha
r
acte
r
s.
Reduc
tio
ns
in s
tr
ing l
engt
h,
to
conserve
memory
space. arc al
so
possihl
e.
The le
ngth
of
a st
ri
ng is
spec
ifi
ed
in the DIMension stat
ement
as follows:
DIM
va
ri
ab
le·narne
(bou
nd)* length
whet
e:
varia
blc
·namc is
th
e
name
of
t
he
ch
ar
ac
t
er
string array,
hound
is the max
im
um
sub
scri
pt
of
the array,
length
is the le
ngt
h
of
each
str
ing w
ith
in
the
.arr.av.
If
only
one
st
ring is nee
de
d . an array \
vi
th
one el
ement
{subscrip
ted
as el
ement
zero) may be
specified to
conserve
memo
ry
space
. This is i
llustrated
by t
he
follo\
•Ji
ng
declaration
of
a 26
ch
a
tacter
st
ri
ng;
DIM
AS
(0) * 26
B.2.
Cone<1
ten
at
ion
Se
ve
ral
cha
r
ac
te r
st
rings (or char
acters
within c
ha
rac
tcr
·vari
ablc
s) can be j
oined
to f
orm
a single
string.
TI1is
"ad
di
ng"
of
chara
cte
r st
ri
ngs is
called
"co
n
catenation".
The form for c
onca
t
ena
tion
is:
vari
ab
le =
Examp
le 1:
charactcr·strin9
+
charac
t
er
·
st
ring
character·var
iab
le character ·Variable
10
S$ =
"SUPER"
20
TS =
S$
+ "
MA
N"
30
PR
IN
T TS
70
Do
not sale this PDF
!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals