Compiler Error 1303 - 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 1303

declaration error: Declaration type not allowed within
Structure datatypes can only be defined globally. Variables of a defined structure
datatype may be declared both globally and locally and passed as function arguments.
INTEGER, LONG_INTEGER, SIGNED_INTEGER, SIGNED_LONG_INTEGER
and STRING are the only SIMPL+ datatypes allowed to be used as structure member
fields. INTEGER and LONG_INTEGER can include 1 and 2 dimensional arrays.
String arrays are not permitted.
The following are examples of this error:
STRUCTURE MyStruct
{
INTEGER i, i1[10], l2[10][20];
SIGNED_INTEGER si, si1[10], si2[10][20];
LONG_INTEGER l, l1[10], l2[10][20];
SIGNED_LONG_INTEGER sl, sl1[10], sl2[10][20]; // ok
STRING s[100];
STRING sArr[10];
DIGITAL_INPUT di;
DIGITAL_OUTPUT do;
ANALOG_INPUT ai;
ANALOG_INPUT ao;
STRING_INPUT si;
BUFFER_INPUT bi;
STRING_OUTPUT so;
STRUCTURE locStruct // error – declaration type not allowed
{
INTEGER x;
}
MyStruct ptr;
}
FUNCTION MyFunc()
{
STRUCTURE MyStruct
supported
{
INTEGER i, i1[10], l2[10][20];
}
}
structure: '<identifier>'
Structure cannot contain String Arrays or
Structure variables: '<identifier>'
Structure definitions not allowed within
other structures Local Structure
declarations are not allowed
// error – string arrays are not allowed
//
within structures
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – declaration type not allowed
// error – local structures are not
Software
// ok
// ok
// ok
// ok
// ok
®
SIMPL+
307

Advertisement

Table of Contents
loading

Table of Contents