EasyManua.ls Logo

Crestron SIMPL+ - Page 111

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 101
Example:
This example takes an input string and creates an output string containing the
elements of the input string that do not have the most significant bit (bit 7) set.
STRING_INPUT SOURCE$[100];
STRING_OUTPUT OUT$;
STRING TEMP$[100];
INTEGER I;
CHANGE SOURCE$
{
FOR(I = 1 to LEN(SOURCE$))
{
IF(BIT(SOURCE$, I, 7) = 0)
{
MAKESTRING(TEMP$, “%s%s”, TEMP$, MID(SOURCE$, I, 1));
}
}
OUT$ = TEMP$;
}
Version:
SIMPL+ Version 1.00

Table of Contents

Other manuals for Crestron SIMPL+

Related product manuals