Compiler Error 1606 - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Software
®
330
SIMPL+
{
TerminateEvent; // error – TerminateEvent is not within
}
}

Compiler Error 1606

construct error: Statement must be contained within a loop
The 'break' statement can only be used with a loop construct. Valid loop constructs
are While loops, Do-While loops and For loops. The compiler encountered this
function outside of one of these event functions.
The following are examples of this error:
FUNCTION MyFunc()
{
INTEGER I;
for ( i = 1 t 10 )
{
break;
// ok
}
while (1)
{
break;
// ok
}
do
{
break;
// ok
} until (1);
if (1)
{
break;
// error – break cannot exist within an 'if'
statement
}
}
EVENT
{
break;
// error – TerminateEvent should be used instead
}
//
an event function
statement
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
®

Advertisement

Table of Contents
loading

Table of Contents