# Funktionsreferenz

Asc

Returns the ASCII code of a character.

Asc ( "char" )

Parameter

char | The character to get the code for. If a string is used, the code for the first character is given.

Bemerkungen

See the Appendix for a complete ASCII table.
Asc("0") == 48, Asc("9") == 57, Asc("A") == 65, Asc("Z") == 90, Asc("a") == 97, Asc("z") == 122, etc.

Siehe auch

Chr

Beispiel

$code = Asc("A")
MsgBox(0, "ASCII code for A:", $code)