Compiler Error 1506; Compiler Error 1507 - Crestron SIMPL+ Reference Manual

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

Advertisement

Software
®
324
SIMPL+

Compiler Error 1506

function argument error: 0, 1 or 2 constant expected for
The function, MakeString, can contain a 0, 1, 2 as the first argument. This tells the
control system to output the resulting string to a specific destination. An integer
value other than 0, 1 or 2 was encountered as the first argument of MakeString().
The different destinations are as follows:
0: Computer Port, same as PRINT.
1: CPU (same functionality as the SendPacketToCPU function)
2: Cresnet Network (same functionality as the SendCresnetPacket function).
The following are examples of this error:
FUNCTION MyFunc( INTEGER x, STRING str )
{
Call MyFunc( 1, "abc" ); // ok
Call MyFunc();
Call MyFunc( 1 );
}

Compiler Error 1507

function argument error: Argument <arg_num>: Missing or
An integer or string variable array was expected and was not encountered.
The following are examples of this error:
FUNCTION MyFunc( INTEGER x[], STRING str[] )
{
INTEGER i;
STRING strArr[100][100];
SetArray( x, 1 );
Call MyFunc( x, StrArr ); // ok
SetArray( i, 1 );
Call MyFunc( 1, "abc" );
}
Crestron SIMPL+
argument 1
// error – 2 arguments are expected
// error – argument 2 is missing
invalid array
// ok
// error – i is not an array
// error – 1 is not an array
Language Reference Guide - DOC. 5797G
®

Advertisement

Table of Contents
loading

Table of Contents