EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1607: GetLastModifiedArrayIndex Ambiguity; Compiler Error 1608: Missing Library File Name; SendCresnetPacket Function

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 331
Compiler Error 1607
construct error: GetLastModifiedArrayIndex may return an
ambiguous signal index
If an event function (EVENT, PUSH, CHANGE, RELEASE) is acting on more than
one input array signal, the specific array will not be able to be determined based on
the index returned from GetLastModifiedArrayIndex(). In order to use
GetLastModifiedArrayIndex() for multiple input signal arrays, a separate event
function will have to be defined for each array.
The following are examples of this error:
DIGITAL_INPUT digIn[10];
ANALOG_INPUT anlgIn[10];
PUSH digIn
{
INTEGER i;
i = GetLastModfiedArrayIndex(); // ok – index from digIn
}
PUSH anlgIn
{
INTEGER i;
i = GetLastModfiedArrayIndex(); // ok – index from anlgIn
}
CHANGE digIn, anlgIn
{
INTEGER i;
i = GetLastModfiedArrayIndex(); // error – ambiguous result
}
Compiler Error 1608
construct error: Missing library file name
A filename was not found following the compiler directive, #USER_LIBRARY or
#CRESTRON_LIBRARY. This filename must be enclosed within quotation marks.
The file extension (.usl or .csl) should NOT be used when specifying the filename.
The following are examples of this error:
#USER_LIBRARY “MyUserLib” // ok
#CRESTRON_LIBRARY “EvntSched” // ok
#USER_LIBRARY MyUserLib // error – missing quotation marks
#USER_LIBRARY MyUserLib.usl // error – missing quotation
marks and
// extension is not allowed

Table of Contents