EasyManua.ls Logo

Commodore 64 - Page 134

Commodore 64
176 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...
STRING FUNCTIONS
ASC(X$)
This function will return the ASCII code of the first character of X$.
CHR$(X)
This is the opposite of ASC, and returns a string character whose
ASCII code is X.
LEFT$(X$,X)
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.
128

Table of Contents

Other manuals for Commodore 64

Related product manuals