Returns the ASCII code of the first character in the input string. If the string contains more than one character, the extra characters are ignored. If the string contains zero characters (is the empty string, "") then ASCII() returns zero.
ASCII ( str As String ) As Integer
Argument | Type | Description |
---|---|---|
str | String | a string of characters |
Intent >ASCII("a") --> 97
Intent >ASCII("ab") --> 97