Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
Chr
Name:
Chr
Syntax:
STRING Chr(INTEGER CODE);
Description:
Takes the integer value specified and returns the corresponding ASCII character as a
one-byte string.
Parameters:
CODE contains a number from 0 to 255 to be converted into an ASCII string.
Return Value:
A string representing the code. If CODE is greater than 255, lower 8-bits of CODE
are used in the computation.
Example:
STRING_OUTPUT Code$;
ANALOG_INPUT VALUE;
CHANGE VALUE
{
Code$ = CHR(VALUE);
PRINT("Code = %s\n", Code$);
}
In this example, if VALUE was equal to 72, the output would be Code = H.
Version:
SIMPL+ Version 1.00
Software
®
SIMPL+
111
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?