CHAR(), CHARS() |
|
|
The CHAR() function returns the character with a given ASCII value.
Format
CHAR(seq)
where
The CHAR() function returns a single character string containing the ASCII character with value seq. It is the inverse of the SEQ() function.
Only the least significant 8 bits of the integer value of seq are used. Values outside the range 0 to 255 may behave differently on other systems and should not be relied on.
The CHARS() function takes a dynamic array seq and returns a similarly structured dynamic array in which each element contains the character with the ASCII value from the corresponding element of seq.
Example
DISPLAY CHAR(7):
This statement outputs character 7 of the ASCII character set to the display. Character 7 is the BELL character and causes the audible warning to sound. This is similar to use of the @SYS.BELL variable except that CHAR(7) is not affected by use of the BELL OFF verb and will always work.
See also: |