User Guide

Software Crestron SIMPL+
®
334 z SIMPL+
®
Language Reference Guide - DOC. 5797G
Scope refers to the level at which an Event, user-defined function or statement
resides. Having a global scope means that the function or variable can be called or
accessed from anywhere within the program. A local scope means that the variable
can only be accessed from within the event or function that it resides in.
The following are examples of this warning:
FUNCTION MyFunc( INTEGER x )
{
Wait( 500, MyLabel1 )
{
Wait( 300, MyLabel2 )
{
TerminateEvent; // warning – this will only terminate
// the Wait Statent, MyLabel2.
// MyLabel1 will continue to
// execute
}
}
}
Compiler Warning 1802
compiler warning: #CATEGORY_NAME defined more than
once.
Using: #CATEGORY_NAME "<number>"
Only one category name is allowed for each SIMPL+ module. If the compiler
directive, #CATEGORY, is found more than once within a SIMPL+ module, the
compiler will use the category number from the last occurrence of the compiler
directive.
The following are examples of this warning:
#CATEGORY “1”
#CATEGORY “2”
FUNCTION MyFunc()
{
}
#CATEGORY “3” // this is the resulting category number
// for this SIMPL+ module
FUNCTION AnotherFunc()
{
}