| ASC Function | Reference/Commodore BASIC V3.5
ASC(X$)
This function returns a numeric value.
This function returns the CHR$ code of the first character in X$. If X$ is an empty string, zero is returned. It is the opposite of the CHR$ function.
?ASC("A") Prints 65 ?ASC("FIRST ONLY") Prints 70 IF ASC(A$) >= 48 AND ASC(A$) <= 57 THEN ?"DIGIT" Prints "digit" if A$ contains a digit
A SHIFT+S
$C6 |
| |
Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon |