Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 301
Function Main() // ok – Function Main gets called
automatically
// at the start of the program
{
i = 5; // ok
str = “”; // ok
Call MyFunc(); // ok
}
Compiler Error 1101
fatal error: Abort - Error count exceeded <max_errors>
When compiling, if the error count is too large, the compiler will terminate the
compile process prematurely. This can not only be a tremendous time saver, but also
help reduce the aggravation and stress levels of the programmer.
compile process prematurely. This can not only be a tremendous time saver, but also
help reduce the aggravation and stress levels of the programmer.
Expression Error (Compiler Errors 1200 to 1201)
Compiler Error 1200
expression error: Invalid numeric expression: '<expression>'
Invalid string expression
Invalid expression: '<expression>'
Invalid string expression
Invalid expression: '<expression>'
Expressions can be calculations, comparisons, or the validity of a value from a string
or numeric variable or value. All expressions require that all variables and values
within the equation are of the same type. For example, you cannot add or compare
an integer and a string together. The result of a comparison (i.e.: abc = def) is always
a numeric value and will be treated as a numeric expression.
or numeric variable or value. All expressions require that all variables and values
within the equation are of the same type. For example, you cannot add or compare
an integer and a string together. The result of a comparison (i.e.: abc = def) is always
a numeric value and will be treated as a numeric expression.
The following are examples of this error:
INTEGER x, y;
STRING str[100];
INTEGER_FUNCTION myFunc( INTEGER i )
{
x = (1 + 2); // ok
if ( x > y ) // ok
{
if ( i ) // ok
{
if ( str = “abc” ) // ok
{
while ( 1 ) // ok
{