User`s manual

A-12
String Functions
Function Operation Examples Page
ASC
(string)
Returns ASCII code of first character
in string argument.
ASC(B$)
ASC ("H")
5/5
CHR$
(code exp)
Returns a one-character string defined
by code. If code specifies a control
function, that function is activated.
CHR$(34)
CHR$(I)
5/5-6
FRE
(string)
Returns amount of memory available
for string storage Argument is a
dummy variable.
FRE(A$)
5/6
INKEY$ Strobes Keyboard and returns a one-
character string corresponding to key
pressed during strobe (null string if no
key is pressed).
INKEY$
5/7
LEFT$
(string,n)
Returns first n characters of string.
LEFT$(A$,1)
LEFT$(L1$+C$,8)
LEFT$(A$,M+L)
5/8
LEN
(string)
Returns length of string (zero for null
string).
LEN(A$+B$)
LEN("HOURS")
5/8
MID$
(string,p,n)
Returns substring of string with length
n and starting at position pin string.
MID$(M$,5,2)
MID$(M$+B$,P,L-1)
5/9
RIGHTS
(string,n)
Returns last n characters of string.
RIGHT$(NA$,7)
RIGHT$(AB$,M2)
5/9
STR$
(numeric exp)
Returns a string representation of the
evaluated argument.
STR$(1.2345)
STR$(A+B*2)
5/9-10
STRING$
(n,char)
Returns a sequence of n char symbols
using first character of char.
STRING$(30,".")
STRING$(25,"A")
STRING$(5,C$)
5/10
VAL
(string)
Returns a numeric value corresponding
to a numeric-valued string.
VAL("1"+A$+"."+C$)
VAL(A$+B$)
VAL(G1$)
5/11
*string
may be a string variable, expression, or constant: