Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
Compiler Error 1306
declaration error: Declaration type can only be used globally:
I/O declarations must be defined globally; they cannot be declared as local variables
inside of a function or library file.
The following are examples of this error:
INTEGER i;
STRING str[100];
DIGITAL_INPUT di;
DIGITAL_OUTPUT do;
ANALOG_INPUT ai;
ANALOG_OUTPUT ao;
STRING_INPUT si[100];
STRING_OUTPUT so;
BUFFER_INPUT bi[100];
FUNCTION MyFunc()
{
INTEGER i;
STRING str[100];
DIGITAL_INPUT di;
DIGITAL_OUTPUT do;
ANALOG_INPUT ai;
ANALOG_OUTPUT ao;
STRING_INPUT si[100]; // error
STRING_OUTPUT so;
BUFFER_INPUT bi[100]; // error
}
'<identifier>'
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// ok – not an I/O declaration
// ok – not an I/O declaration
// error
// error
// error
// error
// error
Software
®
SIMPL+
309
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?
Questions and answers