Software
ARRAY_NAME TYPE
INTEGER, SIGNED_INTEGER
INTEGER, SIGNED_INTEGER
LONG, SIGNED_LONG_INTEGER
LONG, SIGNED_LONG_INTEGER
STRING
STRING
®
98
SIMPL+
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:
INIT_VALUE
TYPE
INTEGER
Every element of ARRAY_NAME is set to the INTEGER
value INIT_VALUE.
STRING
Each integer in ARRAY_NAME is initialized to ATOI
(INIT_VALUE).
INTEGER
Every element of ARRAT_NAME is set to the LONG value
INIT_VALUE.
STRING
Each integer in ARRAY_NAME is initialized to ATOI
(LONG_NAME)
INTEGER
Each string in ARRAY_NAME is initialized to CHR
(INIT_VALUE).
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.
Return Value:
None.
Crestron SIMPL+
MEANING
Language Reference Guide - DOC. 5797G
®
Need help?
Do you have a question about the SIMPL+ and is the answer not in the manual?