EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1302: Variable Name Exceeds Maximum Length

Crestron SIMPL+
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents