Compiler Error 1010; Compiler Error 1011 - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
298
SIMPL+

Compiler Error 1010

syntax error: Symbol Name contains illegal character: ';'
The compiler directive, #SYMBOL_NAME, cannot contain a semicolon as part of
the symbol name.
The following are examples of this error:
#SYMBOL_NAME "MySymbol"
#SYMBOL_NAME "My Symbol"
#SYMBOL_NAME "MySymbol;YourSymbol"

Compiler Error 1011

syntax error: Missing return value
The Return statement requires a valid value or expression when used inside of
functions that return a value (INTEGER_FUNCTION, STRING_FUNCTION, etc.).
The Return statement is available for functions that don't return a value
(FUNCTION), but do not allow values to be returned.
The following are examples of this error:
FUNCTION MyFunc( INTEGER x )
{
if ( x=1 )
return;
return (5);
}
INTEGER_FUNCTION AnotherFunc( INTEGER x )
{
if ( x=1 )
return;
INTEGER_FUNCTION
else if ( x=2 )
return (5);
else if ( x=3 )
return ();
return (x);
}
// ok
// ok
// error
// ok – MyFunc() does not return a value
// error – MyFunc is declared as FUNCTION and
//
cannot return a value
// error – MyFunc is declared as an
//
and must return a value
// ok
// error – no value or expression is given
// ok
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
®

Advertisement

Table of Contents
loading

Table of Contents