Compiler Error 1012; Compiler Error 1013 - Crestron SIMPL+ Reference Manual

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

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Compiler Error 1012

syntax error: Unterminated string constant
A literal string was used and was not contained within quotes. If a quotation
character is needed within a literal string, a backslash should be placed before the
quotation character (i.e.: \). This will indicate to the compiler that the quotation
character is not the terminating quote for the literal string.
The following are examples of this error:
FUNCTION MyFunc()
{
Print( "%s", "abc\"" );
Print( "%s", "abc\" );
}

Compiler Error 1013

syntax error: Source code does not evaluate to anything
A statement must perform an action in order to be valid. If no action is specified, the
statement will not be useful to the program.
The following are examples of this error:
FUNCTION MyFunc()
{
INTTEGER x;
STRING str[100];
x = 5;
str = "abc"; // ok
x;
str;
}
// ok
// error - \" is not a closing quote
// ok
// error
// error
Software
®
SIMPL+
299

Advertisement

Table of Contents
loading

Table of Contents