ASCII()

Synopsis

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.

Syntax

ASCII ( str As String ) As Integer 
Argument Type Description
str String a string of characters

Example 1

 Intent >ASCII("a") 
--> 97 

Example 2

Intent >ASCII("ab") 
--> 97