EasyManua.ls Logo

Crestron SIMPL+ - Compiler Error 1508: I;O Variable Cannot Be Passed to Read File Functions

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 325
Compiler Error 1508
function argument error: I/O variable cannot be passed to
read file functions: '<identifier>'
Read file functions (ReadInteger, ReadString, etc.) cannot contain Input or Output
variables for the function’s resulting read buffer.
The following are examples of this error:
DIGITAL_OUTPUT digOut;
STRING_OUTPUT strOut;
FUNCTION MyFunc( SIGNED_INTEGER nHandle )
{
STRING str[100];
INTEGER x;
ReadInteger( nHandle, x ); // ok
ReadString( nHandle, str ); // ok
ReadInteger( nHandle, digOut ); // error
ReadString( nHandle, strOut ); // error
}

Table of Contents