EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1502: Incomplete Number of Arguments; Compiler Error 1503: Input or Output Signal Expected

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...
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G SIMPL+
®
z 321
Compiler Error 1502
function argument error: Function contains incomplete
number of arguments
Function call contains an
unmatched number of
arguments
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(); // error – 2 arguments are expected
Call MyFunc( 1 ); // error – argument 2 is missing
}
Compiler Error 1503
function argument error: Input or Output signal expected:
'<identifier>'
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 ); // ok
i = IsSignalDefined( digInArr[5] ); // ok
i = IsSignalDefined( digOut ); // ok
i = IsSignalDefined( anlgIn ); // ok
i = IsSignalDefined( anlgOut ); // ok
i = IsSignalDefined( strIn ); // ok
i = IsSignalDefined( strOut ); // ok
i = IsSignalDefined( buffIn ); // ok
digOut = IsSignalDefined( i ); // error – ‘i’ is not
an Input

Table of Contents