User Guide
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