LEFT$ (string, n)
Returns the first n characters
of
string. The arguments mustbe enclosed in
parentheses.
string may be a string constant
or
expression, and n may be a numeric
expression.
Example Program:
670
AS
=
"TIMOTHY"
680
B$ =
LEFTS
(AS,
3)
690
PH
I
NT
B$;
"
M,··T
I,-t
AT
'I
B BHOHT
FOH
";
A~t>
LEN
(string)
Returns the characterlength
of
the specified string. The string variable, expression,
or
constantmustbe enclosed in parentheses.
7:'3(2)
AS
:::
II"
7L.0 B$
::::
II
TOM
II
750
PRINT
AS,
BS,
B$ +
B$
760
PRINT
LEN(AS),
LEN(B$),
LEN(B$+B$)
5/5