User Guide

Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 55
Example:
INTEGER temp_level;
Specifies one locally declared INTEGER in this SIMPL+ program
INTEGER CommandBytes[2];
Specifies an array of three INTEGERS that can be referenced under the name
CommandBytes. In pictorial form, it appears as:
INTEGER Matrix[4][3];
Specifies a two-dimensional array of integers five rows deep by four columns wide.
In pictorial form, it appears as:
Version:
SIMPL+ Version 1.00
SIMPL+ Version 2.00 allowed INTEGER to be declared inside of functions.
CommandBytes[0] CommandBytes[1] CommandBytes[2]
Matrix[0][0] Matrix[0][1] Matrix[0][2] Matrix[0][3]
Matrix[1][0] Matrix[1][1] Matrix[1][2] Matrix[1][3]
Matrix[2][0] Matrix[2][1] Matrix[2][2] Matrix[2][3]
Matrix[3][0] Matrix[3][1] Matrix[3][2] Matrix[3][3]
Matrix[4][0] Matrix[4][1] Matrix[4][2] Matrix[4][3]
NOTE: The subscripts of an array may be an expression, i.e.:
INTEGER location[5], room;
room = 2;
location[room] = 10;