Compiler Error 1007 - Crestron SIMPL+ Reference Manual

Language reference guide
Hide thumbs Also See for SIMPL+:
Table of Contents

Advertisement

Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®

Compiler Error 1007

syntax error: Missing array index: '<identifier>'
A variable declared as an array is being used within an expression without the array
index being specified. For two-dimensional arrays, both indices must be specified.
When passing entire arrays as function arguments, no index is needed.
The following are examples of this error:
FUNCTION MyFunc()
{
INTEGER i, arr[10], arr2[10][20];
STRING str[100], str2[100][50];
i = arr[5];
i = arr2[5][10];
arr[5] = arr2[5][10];
arr2[5][10] = 5;
i = arr;
arr = 5;
i = arr2[5];
specified
str2[5] = "a";
str[5] = "a";
}
// ok
// ok
// ok
// ok
// error – no index specified
// error – no index specified
// error – 2nd index not
// ok
// error – 'str' is not an array
SIMPL+
Software
®
295

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIMPL+ and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF