Compiler Warning 1800; Compiler Warning 1801; Compiler Warnings (Compiler Errors 1800 To 1803) - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+

Compiler Warnings (Compiler Errors 1800 to 1803)

Language Reference Guide - DOC. 5797G
®

Compiler Warning 1800

compiler warning: 'Return' statement will only terminate
A 'Return' statement within a Wait Statement's block of code will cause the Wait
Statement to terminate. It will NOT terminate the current function that the Wait
Statement resides within.
Wait Statements are similar to event functions (EVENT, PUSH, CHANGE,
RELEASE) in that they execute in their own program thread. The control system can
have many threads executing at the same time; each thread runs concurrent with one
another.
The following are examples of this warning:
FUNCTION MyFunc( INTEGER x )
{
if ( x == 1 )
{
Wait( 500 )
{
return;
}
}
else if ( x == 2 )
return;
x = x + 1;
}

Compiler Warning 1801

compiler warning: 'TerminateEvent' statement will only
When Wait Statements are embedded within one another, the TerminateEvent, will
only terminate the corresponding Wait Statement of the same scope. It will NOT
terminate any Wait Statements that are of a different scope.
Wait Statements are similar to event functions (EVENT, PUSH, CHANGE,
RELEASE) in that they execute in their own program thread. The control system can
have many threads executing at the same time; each thread runs concurrent with one
another.
current Wait statement's function scope
// warning - this will terminate the
//
Wait Statement. It will NOT
//
terminate MyFunc()
// this will terminate MyFunc()
terminate current Wait statement's
function scope
Software
®
SIMPL+
333

Advertisement

Table of Contents
loading

Table of Contents