Asc Function [Runtime]/text/sbasic/shared/03120101.xhpAsc functionAsc Function [Runtime]Returns the ASCII (American Standard Code for Information Interchange) value of the first character in a string expression.Syntax:Asc (Text As String)Return value:IntegerParameters:Text: Any valid string expression. Only the first character in the string is relevant.Use the Asc function to replace keys with values. If the Asc function encounters a blank string, $[officename] Basic reports a run-time error. In addition to 7 bit ASCII characters (Codes 0-127)UFI: TL called me and asked to change this, the ASCII function can also detect non-printable key codes in ASCII code. This function can also handle 16 bit unicode characters.Example:Sub ExampleASCPrint ASC("A") REM returns 65Print ASC("Z") REM returns 90Print ASC("Las Vegas") REM returns 76, since only the first character is taken into accountEnd SubCHR