Returns the character code corresponding to the character in the first (leftmost) position of a string.
ASC     ( string )
          └─┬──┘
     String expression
ASC("A")
string: String expression
10  INPUT "INPUT CHARACTERS"; A$
20  B$ = LEFT$(A$, 1)
30  C = ASC(A$)
40  PRINT "FIRST CHAR="; B$; " CODE="; C
50 END
Displays first character and corresponding character code for string input.