Returns the character corresponding to the specified ASCII code. The ASCII code used corresponds to the ANSI standard used in Windows.
ASCIIChar = Charact(49) // Returns "1"
ASCIIChar = Charact(87) // Returns "W"
Syntax
<Result> = Charact(<ASCII code to convert>)
<Result>: Character string
Character corresponding to the specified ASCII code.
<ASCII code to convert>: Integer
Value to convert (between 0 and 255). A WLanguage error occurs if the value is invalid.
Remarks
Avoid using Charact
The following preset constants avoid the use of Charact:
| | |
Constant | Value | Function |
---|
CR | Charact(13) + Charact(10) | Carriage Return |
TAB | Charact(9) | Tabulation |
ESC | Charact(27) | Esc key |
SPC | Charact(160) | Non-breaking space |