Remote Processing CAMBASIC User Manual
Page 38

Comm ands - 5
ASC
Numeric Fun ction
SYNTAX:
n = A S C (m$)
PURPOSE:
To return the ASC II code for the first character of the string m$.
REMARK S:
The result of the ASC function is a numerical value that is the ASCII code of the first character of
the string.
The CH R$ function is the inverse of the ASC function, and is used to convert from the ASCII code
to a character.
RELATED:
CHR$, STR$, VAL
EXAMPLE:
10 F$ = "Alert"
20 PRINT ASC(F$)
RUN
65
ERROR:
< Illegal argument> – if m$ is a null