Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
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
}