Commodore 64 User Manual page 138

Hide thumbs Also See for 64:
Table of Contents

Advertisement

STRING FUNCTIONS
ASC(X$)
This function will return the ASCII code of the first character of X$.
0
CHR$(X)
0
This is the opposite of ASC, and returns a string character whose
ASCII code is X.
0
LEFT$(X$,X)
0
Returns a string containing the leftmost X characters of $X.
LEN(X$)
Returned will be the number of characters (including spaces and
other symbols) in the string X$.
MID$(X$,S,X)
This will return a string containing X characters starting from the Sth
character in X$.
RIGHT$(X$,X)
Returns the rightmost X characters in X$.
STR$(X)
This will return a string which is identical to the PRINTed version of X.
VAL(X$)
This function converts X$ into a number, and is essentially the inverse
operation from STR$. The string is examined from the leftmost character
to the right, for as many characters as are in recognizable number for-
mat.
O
0
O
da
128

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents