EasyManua.ls Logo

Commodore CBM - Len; MID

Commodore CBM
447 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...
Examples:
?LEFT$("ARG".2)
A$=LEFT$(B$.10)
LEN
Prints
AR.
LEN
returns the length of the string argument.
Format:
LEN(arg)
where:
arg
is
a string constant. variable. or expression.
LEN
returns a number
that
is
the
count
of characters in the specified string.
Examples:
?LEN("ABCDEF") Prints
6.
N=LEN(C$+D$)
MID$
MID$ returns any specified portion of a string.
Format:
1
(blank)l
MID$(arg.position
.count
where:
Return ail characters
from position to end.
Return count characters
starting from position.
count
arg
position
is
a string constant. variable. or expression.
is
a numeric constant. variable. or expression
specifying the character position in the string at
which
retrieval
is
to begin. Position 1
is
the
beginning of the string.
If
the position
is
beyond
the end of the string. a
nu"
string
is
returned.
This
parameter
must
be
in
the
range
O<position~255.
if present.
is
a numeric constant. variable. or ex-
pression
that
specifies the number of charac-
ters to
be
returned. If omitted. or if
it
is
larger
than the
count
to the end of the string. ail
characters fram the starting position to the end
of the string are returned. This parameter must
be
in the range
O<count<255.
An Illegal Quantity error message
is
printed if a parameter
is
out of range.
157

Table of Contents

Other manuals for Commodore CBM

Related product manuals