EasyManua.ls Logo

Crestron SIMPL+ - Page 225

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 215
Example:
INTEGER X;
STRING Z[100], OUT[100];
X=10;
Z=”Hello”;
FUNCTION MAIN()
{
// Puts “This is a string” followed by a CRLF onto OUT.
MAKESTRING(OUT, “This is string\n”);
// Puts “The value of X is 10 in decimal, 0A in hex”
// followed by CRLF onto OUT.
MAKESTRING(OUT, “The value of X is %u in decimal, %02X in
hex\n”, X, X);
// Puts “The String value is Hello” onto OUT.
MAKESTRING(OUT, “The String value is %s”, Z);
}
Version:
SIMPL+ Version 2.00 for Console, Cresnet, and CPU destinations.
SIMPL+ Version 1.00 for everything else.

Table of Contents