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

function argument error: I/O variable cannot be passed to
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 );
ReadString( nHandle, str );
ReadInteger( nHandle, digOut ); // error
ReadString( nHandle, strOut );
}
read file functions: '<identifier>'
// ok
// ok
// error
Software
®
SIMPL+
325

Advertisement

Table of Contents
loading

Table of Contents