Crestron simpl plus language ref 사용자 설명서
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.
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