Asc

Strings
Aptilis 1

Asc(String)

Asc returns the ASCII code of the first character of the string you specified.

Return Value:
An ASCII code.

Example:

asciiCode = asc("A")
print(asciiCode)
Result:
65

Notes:
ASCII stands for American Standard for Characters Interchange and Interface.
Numbers from 0 to 9 are coded with values from 48 to 57 respectively, and capital letters go from 65 (A) to 90 (Z). Note that adding 32 to a capital letter ASCII code brings the lower case equivalent.
ASCII is usually standard across platforms (PC, Mac, Unix...) except for the codes after 128. This is a problem for HTML pages where an accentuated letter will look fine on the original platform but will translate to another character on an other computer. That is why it is recommended to use character entities for all accentuated characters, i.e. é for 'é' when doing HTML pages.