EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1604: EVENT Statement Already Has a Body; Compiler Error 1605: Function Can Only Be Contained Within an Event

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 329
Compiler Error 1604
construct error: 'EVENT' already has a body
The EVENT statement can only be defined once per SIMPL+ module. A previously
defined definition of EVENT was already encountered by the compiler.
The following are examples of this error:
EVENT // ok
{
}
EVENT // error – EVENT is already defined
{
}
Compiler Error 1605
construct error: Function can only be contained within an
event
The function, TerminateEvent, can only be used within a PUSH, CHANGE,
RELEASE or EVENT statement. The compiler encountered this function outside of
one of these event functions.
The following are examples of this error:
DIGITAL_INPUT digIn;
EVENT
{
TerminateEvent; // ok
}
PUSH digIn
{
TerminateEvent; // ok
}
RELEASE digIn
{
TerminateEvent; // ok
}
CHANGE digIn
{
TerminateEvent; // ok
}
FUNCTION MyFunc()
{
while (1)

Table of Contents