%CHAR
Return an ASCII character for a numeric expression
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
NSupported in Synergy .NET
|
character = %CHAR(expression)
Return value
character
The character that corresponds to the ASCII character value of expression. (a)
Arguments
expression
The expression to convert. (n)
Discussion
Expression is evaluated modulo 256. (If it is greater than 255, it is divided by 256 and the remainder is used.) For example, %CHAR(299) is equivalent to %CHAR(43).
%CHAR(0) returns a null character.
Examples
The following code loads the delete character as the initial value in del.
record del ,a1 proc del = %char(127)