EasyManua.ls Logo

Laser 128 - Left

Laser 128
255 pages
Print Icon
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...
BASIC COMMANDS AND
STATEMENTS
3.30
LEFT$
Purpose:
Returns
a
specified
number
of
characters
from
the
left-hand
side
of
a
character
string.
Format:
LEFT$
(string$
,
n)
Comments:
The
number
n
must
be
betw
ee
n
1
and
255,
and
if
it
is
greater
than
the
length
of
string$,
then
the
LEFT$
function
will
return
the
entire
string
str
ing$
to
the
program.
Example:
LEFT$
works
similarly
to
the
RIGHT$
and
MID$
string
functions.
] I 0
A$
=
"Computer"
] 20 B$ = "is ok".
]
30
PRINT
LEFT$(B$,
1)
] 40
PRINT
LEFT$
(A$, 8)
]RUN
1
Computer
1
II-61

Table of Contents