Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Software Crestron 
SIMPL+
®
98 
z SIMPL+
®
Language Reference Guide - DOC. 5797G
SetArray
Name:
SetArray
Syntax:
SetArray (ARRAY_NAME, INTEGER | STRING INIT_VALUE); 
Description:
Sets every element of ARRAY_NAME to the INIT_VALUE.
Parameters:
ARRAY_NAME is the name of the array to be initialized. It may be any array type.
The INIT_VALUE may be a INTEGER or STRING. The following chart shows the 
various combinations of ARRAY_NAME types and INIT_VALUE types: 
Return Value:
None.
ARRAY_NAME TYPE
INIT_VALUE 
TYPE
MEANING
INTEGER, SIGNED_INTEGER
INTEGER
Every element of ARRAY_NAME is set to the INTEGER 
value INIT_VALUE.
INTEGER, SIGNED_INTEGER
STRING
Each integer in ARRAY_NAME is initialized to ATOI 
(INIT_VALUE).
LONG, SIGNED_LONG_INTEGER
INTEGER
Every element of ARRAT_NAME is set to the LONG value 
INIT_VALUE.
LONG, SIGNED_LONG_INTEGER
STRING
Each integer in ARRAY_NAME is initialized to ATOI 
(LONG_NAME)
STRING
INTEGER
Each string in ARRAY_NAME is initialized to CHR 
(INIT_VALUE).
STRING
STRING
Each string in ARRAY_NAME is set equal to INIT_VALUE. IF 
INIT_VALUE is longer than the maximum size allowed in the 
array, it is truncated.
NOTE: When working with DIGITAL_OUPUT arrays, if the INIT_VALUE 
evaluates to 0, the digital signals are set low. For any non-zero value, the outputs are 
set high.