Crestron simpl plus language ref 사용자 설명서
Software Crestron
SIMPL+
®
306
z SIMPL+
®
Language Reference Guide - DOC. 5797G
xArr = xArr; // error – cannot copy arrays
xArr = x2dArr[1]; // error – cannot copy arrays
x2dArr[1] = xArr; // error – cannot copy arrays
Call MyIntFunc( xArr[5], x2dArr ); // error – cannot pass
index
// arrays are passed
// by reference
}
FUNCTION MyStrFunc( STRING s, STRING s[] ) // ok
{
STRING sLocal[100];
str = “abc”; // ok
strArr[5] = “def”; // ok
strIn = s; // ok
strOut = s; // ok
sInArr[5] = “abc”; // ok
sOutArr[5] = “abc”; // ok
Call MyStrFunc( str, strArr ); // ok
str[1] = “a”; // error – s is a string, not an array
sLocal = str[1]; // error – individual characters within
// a string can only be accessed
// with the function, Byte()
}
Compiler Error 1302
declaration error: Variable name, ‘<identifier>’, exceeds
maximum length of <max> characters
Variable names have a maximum length of 120 characters.