Compiler Error 1311 - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
314
SIMPL+

Compiler Error 1311

declaration error: Undefined Wait Label: '<identifier>'
Wait Statements can be given a label as an optional argument. This label must be a
unique name and more than one wait statement cannot share the same label name.
The label name can then be used in the Pause, Cancel and Resume wait functions. All
labels must already be declared in within a wait statement before any Pause, Cancel
or Resume wait statement can reference it.
The following are examples of this error:
FUNCTION MyFunc()
{
CancelAllWaits();
CancelWait( MyWaitLabel );
Wait( 500 )
{
}
Wait( 500, MyWaitLabel )
{
}
Wait( 500, MyWaitLabel )
already
{
}
CancelWait( AnotherWaitLabel ); // error – AnotherWaitLabel
has
Wait( 500, AnotherWaitLabel )
unique
{
}
CancelWait( AnotherWaitLabel ); // ok
PauseWait( MyWaitLabel );
ResumeWait( MyFunc );
valid
ResumeWait( someLabel );
not exist
}
Missing, invalid or already defined Wait
label: '<identifier>'
// ok
// error – MyWaitLabel has
//
// ok – Label is not required
// ok – MyWaitLabel is unique
// error – MyWaitLabel has
//
//
// ok – AnotherWaitLabel is
// ok
// error – MyFunc is not a
//
// error – someLabel does
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
not been declared yet
been used
not been declared yet
wait label
®

Advertisement

Table of Contents
loading

Table of Contents