Compiler Error 1502; Compiler Error 1503 - 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 1502

function argument error: Function contains incomplete
When calling a functions that contain parameter lists, the number of arguments
passed to the function must match the number of parameters defined for that 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 1503

function argument error: Input or Output signal expected:
The expected identifier must be of an Input or Output signal datatype (i.e.:
DIGITAL_INPUT, ANALOG_OUTPUT, STRING_INPUT, etc.).
The following are examples of this error:
DIGITAL_INPUT digIn, digInArr[10];
DIGITAL_INPUT digIn;
ANALOG_INPUT anlgIn;
ANALOG_OUTPUT anlgOut;
STRING_INPUT strIn[100];
STRING_OUTPUT strOut;
BUFFER_INPUT buffIn[100];
INTEGER i;
STRING str[100];
FUNCTION MyFunc()
{
i = IsSignalDefined( digIn );
i = IsSignalDefined( digInArr[5] ); // ok
i = IsSignalDefined( digOut );
i = IsSignalDefined( anlgIn );
i = IsSignalDefined( anlgOut );
i = IsSignalDefined( strIn );
i = IsSignalDefined( strOut );
i = IsSignalDefined( buffIn );
digOut = IsSignalDefined( i );
an Input
number of arguments
Function call contains an
unmatched number of
arguments
// error – 2 arguments are expected
// error – argument 2 is missing
'<identifier>'
// ok
// ok
// ok
// ok
// ok
// ok
// ok
// error – 'i' is not
Software
®
SIMPL+
321

Advertisement

Table of Contents
loading

Table of Contents