EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1312: Array Boundary Exceeded Maximum Size; Compiler Error 1313: Invalid Minimum Array Size

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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 315
Compiler Error 1312
declaration error: Array boundary exceeded maximum size
of ‘num_bytes’ bytes
The maximum number of indices for an array is 65535.
The following are examples of this error:
FUNCTION MyFunc()
{
INTEGER int[100], intArr[100][100]; // ok
STRING str[100], strArr[100][100]; // ok
INTEGER int[100000]; // error
INTEGER intArr[100000][100]; // error
INTEGER intArr[100][100000]; // error
STRING str[100000]; // error
STRING strArr[100000][100]; // error
STRING strArr[100][100000]; // error
}
Compiler Error 1313
declaration error: Minimum array size invalid
The minimum array size cannot exceed the total size of the array. The minimum
array size must be between 1 and the total size of the array.
The following are examples of this error:
DIGITAL_INPUT digIn1[10]; // ok
DIGITAL_INPUT digIn2[10,5]; // ok – minimum size is 5
ANALOG_INPUT anlgIn3[10,0]; // error – minimum size must be
// greater than 0
STRING_INPUT strIn4[10,20]; // error – minimum size of 20
exceeds
// total array size of 10

Table of Contents