Software
®
334
SIMPL+
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;
}
}
}
Compiler Warning 1802
compiler warning: #CATEGORY_NAME defined more than
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"
FUNCTION AnotherFunc()
{
}
// warning – this will only terminate
//
the Wait Statent, MyLabel2.
//
MyLabel1 will continue to
//
once.
Using: #CATEGORY_NAME "<number>"
// this is the resulting category number
// for this SIMPL+ module
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
execute
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?