Software
®
306
SIMPL+
xArr = xArr;
xArr = x2dArr[1]; // error – cannot copy arrays
x2dArr[1] = xArr; // error – cannot copy arrays
Call MyIntFunc( xArr[5], x2dArr ); // error – cannot pass
index
}
FUNCTION MyStrFunc( STRING s, STRING s[] )
{
STRING sLocal[100];
str = "abc";
strArr[5] = "def";
strIn = s;
strOut = s;
sInArr[5] = "abc";
sOutArr[5] = "abc";
Call MyStrFunc( str, strArr );
str[1] = "a";
sLocal = str[1]; // error – individual characters within
}
Compiler Error 1302
declaration error: Variable name, '<identifier>', exceeds
Variable names have a maximum length of 120 characters.
// error – cannot copy arrays
//
// error – s is a string, not an array
//
a string can only be accessed
//
with the function, Byte()
maximum length of <max> characters
Language Reference Guide - DOC. 5797G
Crestron SIMPL+
arrays are passed
//
by reference
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// ok
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?