A
ll
and more about Sharp P
C-
1500 at http://www.PC-1500.info
The "nun,bcr" argument sp
ec
ifics how ma
r'1
y characters to extract be9innin9 fro
rn
the l
eft
side.
Example
1:
Output :
10
AS =
LEF
TS
("DR
ESSER",
5)
20
PR
IN
T AS
I DR-E
SS
RUN
Example 2:
Ou
tput:
10
BS
=
"THINK
BIG"
20
AS = LEFTS fBS. 4)
30
PR
INT AS
•
RUN- -
-----
- I J
In
bot
h
ex
a
rn
ples, sta
rt
ing from
the
l
ef
t si
de
of
tf
1e character
st
ring, c
ha
racters are extracted and
stored
in
AS. Print ing AS res
ult
s in
"DRESS"
a
nd
" THI
N"
res
pectively.
C.6.
MIO$
To
extract the middle portion of a character stti
ng
the function M IDS is
used
.
Example 1:
Ou
tput
:
Example
2:
Output :
{
{"character string",
ex
pression,
ex
pr
ession)
MIDS
( character string variable, expression, expression)
10 AS =
"I
NE
ED
HE
L
P"
20
BS
=
MID$
(AS. 3,
4)
30
PR
INT
BS
NEED
f
tU
N
10 TS = MID$
("(4
1517
43
-
1602"
. 6, 3)
20
PR
INT TS
RUN
7
43
------
76
Do
not sale this PDF
!!!