ASC (str-exp)
Takes the character given by str-exp and returns the ASCII code for it.
Program Example.
00100 REM The ASC function
00110 INPUT "Please enter a character";A0$
00120 B = ASC(A0$)
00130 PRINT "The ASCII code for ";A0$;" is ";B
00140 END
Try it
See also CHR$