EasyManua.ls Logo

Radio Shack TRS-80 Model III - Page 177

Radio Shack TRS-80 Model III
274 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...
BASIC
LEFT$ (string,
n)
Returns the first n characters
of string. The arguments must be enclosed
in
parentheses, string may
be a string constant or expression, and
n
may
be a numeric
expression.
Example Program:
670 A*
=
"TIMOTHY"
680 B*
=
LEFT*
<A*s 3)
690
PRINT B*S
"
-THAT'S
SHORT
FOR A*
LEN
(string)
Returns the
character length
of the specified string. The string
variable,
expression,
or constant
must be enclosed
in parentheses
.
730 A*
=
"
"
740 B*
=
"TOM"
750 PRINT
A*»
B*»
760 PRINT LEN (A*),
B$
+
B$
LEN ( B*
)
»
LEIM<B*+B*>
167

Other manuals for Radio Shack TRS-80 Model III

Related product manuals