EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1314: Minimum Array Size Not Allowed

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...
Software Crestron SIMPL+
®
316 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Compiler Error 1314
declaration error: Minimum array size is not allowed for this
datatype: '<identifier>'
Minimum array size for this datatype
has already been declared: '<identifier>'
Minimum array sizes are only applicable to Input and Output datatypes (i.e.:
DIGITAL_INPUT, ANALOG_OUTPUT, STRING_INPUT, etc.). A variable of
another datatype was found trying to define a minimum array size. Only one array
for each Input or Output datatype is allowed to be declared with a minimum array
size.
The following are examples of this error:
DIGITAL_INPUT digIn1[10]; // ok
DIGITAL_INPUT digIn2[10,5]; // ok – minimum size is 5
DIGITAL_INPUT digIn3[20,10]; // error – the DIGITAL_INPUT
array
// variable, digIn2, has already
// been declared with a minimum
// array size
ANALOG_INPUT anlgIn1[10]; // ok
ANALOG_INPUT anlgIn2[10,5]; // ok – no other ANALOG_INPUT has
been
// declared with a minimum
array size
INTEGER x[10]; // ok
INTEGER y[10,5]; // error – INTEGER is not an Input or
// Output datatype

Table of Contents