Compiler Error 1307 - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
310
SIMPL+

Compiler Error 1307

declaration error: Variables must be declared before array
I/O declarations must be declared in a specific order. All arrays of an I/O declaration
type (i.e.: DIGITAL_INPUT) must be declared after any variables of the same type.
The following are examples of this error:
DIGITAL_INPUT di1, di2;
DIGITAL_INPUT di3;
ANALOG_INPUT ai1
DIGITAL_OUTPUT do1;
ANALOG_INPUT aiArr1[10];
DIGITAL_INPUT di4;
yet
DIGITAL_INPUT diArr1[10]; // ok
DIGITAL_OUTPUT do2;
ANALOG_INPUT aiArr2[20];
DIGITAL_INPUT di5;
ANALOG_INPUT ai2;
declarations: '<identifier>'
// ok
// ok
// ok
// ok
// ok
// ok – no DIGITAL_INPUT array exists
// ok
// ok – multiple arrays are allowed
// error – cannot define after diArr1
// error – cannot define after aiArr2
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
®

Advertisement

Table of Contents
loading

Table of Contents