EasyManua.ls Logo

Sharp PC-1500 - Len; Lef T; Rights

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
C.4.
LEN
Wh
ile
man
ipulating
characters
.
it
is
desirable
to
know
th
e
nu
mber
of
ch
aracte
rs i 1) a string,
Th
is
can
be
do
ne
by
th
e use
ot
the LEN f
unction.
It returns the n
umber
of charac:ters in a specified
e
xpr
ession
or
charac
t
er
variable.
Example 1:
Output:
I.
Exa
mp
le
2:
Outp
ut:
LEN
"character stringĀ·Ā·
character
va
riable name
10
AS
=
"C
A
TH
Y"
20
C = LEN
AS
30
PR
IN
T C
RUN
10 C = LEN
"CAT"
20
PRIN
T C
RUN
If LEN
is
used
on
an e
mpty
string (
i.
e.
nothing is
enc
losed in t
he
quotation
ma
rks}, zero \vi
ii
be
retur
ne
d.
Example
3:
Output:
--
-
C.5.
LE
FTS
10
A = LEN
""
20
PAIN
T A
OUN
There are
thr
ee
fu
nct
ions used to sele
ct
or
extract
s
pe
cifi
ed
se
ctions
of a character string.
LE
FT$
extracts
characters
fr
om
the le
ft
,
RIGH
TS
from
the
right
and
MIDS
fr
om the middle.
LE
FTS
{
("charac
ter
string"
,
nu
rnbe
r}
(chara
c1e
r v
ar
iab
l'e
name.
nu
mber)
75
Do
not sale this PDF
!!!

Table of Contents

Other manuals for Sharp PC-1500

Related product manuals