Compiler Error 1009 - 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 1009

syntax error: Missing structure member: '<identifier>'
Structure does not contain member: '<identifier>'
Variables contained within structures are required when using structures within an
expression or statement. When using structures, the 'dot' notation is required to
specify a structure's variable.
The notation is as follows: <structure_name>.<member_variable>
Structure arrays are as follows: <structure_name>[index].<member_variable>
The following are examples of this error:
STRUCTURE MyStruct
{
INTEGER x;
INTEGER x2[10];
}
Function MyFunc( INTEGER x )
{
INTEGER i;
MyStruct struct;
MyStruct structArr[10];
i = struct.x;
struct.x = 5;
struct.x2[2] = 5;
structArr[1].x2[2] = 5;
Call MyFunc( i );
Call MyFunc( struct.x );
Call MyFunc( structArr[1].x ); // ok
Call MyFunc( struct.x2[1] );
i = struct;
specified
struct = i;
specified
Call MyFunc( struct );
specified
i = struct.z;
not exist
struct.z = 5;
not exist
}
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// error – structure variable not
// error – structure variable not
// error – structure variable not
// error – structure variable does
// error – structure variable does
Software
®
SIMPL+
297

Advertisement

Table of Contents
loading

Table of Contents