Software
®
296
SIMPL+
Compiler Error 1008
syntax error: Invalid integer argument or undefined variable:
'<identifier>'
The construct being used requires either an integer value or variable passed as a
function argument.
•
Make sure the variable has been declared
The following are examples of this error:
STRUCTURE MyStruct
{
INTEGER x;
STRING s[100];
}
MyStruct struct;
Function MyFunc()
{
INTEGER i;
STRING s[100];
for ( i = 1 to 10 )
{
for ( j = 1 to 5 )
{
x = j;
}
for ( s = "a" to "z" ) // error – strings are not allowed
{
}
}
}
Crestron SIMPL+
// ok
// error – 'j' has not been declared
// error – should be struct.x = j;
Language Reference Guide - DOC. 5797G
®