asc()

Return the ASCII code of the first character in string. Empty strings will return a value of zero.

Syntax:
variable = asc( string )

Example:
' set n to 65
n = asc("A")

See also chr$() command.