asc()

文字列の先頭文字に関する ASCII 値を返します。空文字列では 0 の値が返されます。

文法:
variable = asc( string )

用例:
' n へ 65 を代入
n = asc("A")

chr$() コマンドを参照してください。