DescriptionReturns the ASCII code of the character specified
Return ValuesNumbers = 48 to 57
Upper Case Letters = 65 to 90
Lower Case Letters = 97 to 122
ExampleThe following example checks the ASCII value against a specified range that identifies the response as a letter (and not a symbol or number).
? "Please Choose A Letter: "
If (ASC ($Answer) => 65 AND ASC($Answer) <= 90)
OR (ASC ($Answer) => 97 AND ASC($Answer) <= 122)
? "Valid Selection"
? "Invalid Selection"
Also see:Abs CDbl Cint Val CStr Round Int Fix Rnd SRnd DecToHex FormatNumber
Note: you can view this information right within ASE by right clicking any keyword and selecting "Help..."
Find answers or open a ticket to ask directly, when opening a ticket we will suggest relavant articles to help you get answers as quickly and accurately as possible. Visit our support center now!