Crestron SIMPL+ Reference Manual page 109

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
Example:
DIGITAL_INPUT InitializeArrays;
INTEGER Levels[10];
STRING Names[5][5];
PUSH InitializeArrays
{
SetArray(Levels, 3);
SetArray(Levels, "3");
SetArray(Names, "xyz");
SetArray(Names, 0x41);
}
The first line initializes all elements of the integer array Levels to contain the integer
3.
The second line attempts to initialize the elements of the integer array Levels with a
string value - an ATOI is done on the "3", which returns a 3, so that the end result is
the same as the first line.
The third line initializes all elements of the elements of the string array Names to
contain the string value "xyz".
The fourth line attempts to initialize the elements of the string array Names with an
integer value - a CHR is done on the 0x41, which returns the string "A", so that the
end result has all elements of the string array Names containing the string "A".
Version:
SIMPL+ Version 2.00
Software
®
SIMPL+
99

Advertisement

Table of Contents
loading

Table of Contents