Description:
Returns the ANSI character code corresponding to the first letter in the string.
In the PROMOTIC system it is better to use the Pm.StringCodeAt method.
Syntax:
Integer Asc(String string)
Parameters:
string | (String) Text string. If the string contains no characters, then a runtime error occurs. |
---|
Example:
VBScriptSelect and copy to clipboard
Dim n
n = Asc("A")
' Returns 65
n = Asc("a")
' Returns 97
n = Asc("Apple")
' Returns 65