Crestron simpl plus language ref 사용자 설명서
Crestron SIMPL+
®
Software
Language Reference Guide - DOC. 5797G
SIMPL+
®
z 31
Arrays
Various one and two dimensional arrays are supported. All input and output arrays
are 1-based, meaning that the first element has index 1, not 0. Internal variables are
0-based, meaning that the first element has index 0. In both cases, the index of the last
element is the same as the dimension of the array.
are 1-based, meaning that the first element has index 1, not 0. Internal variables are
0-based, meaning that the first element has index 0. In both cases, the index of the last
element is the same as the dimension of the array.
Do not confuse the declaration of the length of STRINGs with the declaration of
arrays. E.g. STRING s$[32] is a single string of length 32, and STRING
ManyS$[10][32] is an array of 11 strings of length 32 each. You must use the BYTE
function to access the character at a particular position in a string, but you can use the
array index to access a particular string in an array of strings. Positions in a string are
1-based. Refer to the discussion of Minimum Size Arrays in Declaration Overview
on
arrays. E.g. STRING s$[32] is a single string of length 32, and STRING
ManyS$[10][32] is an array of 11 strings of length 32 each. You must use the BYTE
function to access the character at a particular position in a string, but you can use the
array index to access a particular string in an array of strings. Positions in a string are
1-based. Refer to the discussion of Minimum Size Arrays in Declaration Overview
on
One dimensional arrays of the following types are supported:
DIGITAL_INPUT
DIGITAL_OUTPUT
ANALOG_INPUT
ANALOG_OUTPUT
STRING_OUTPUT
BUFFER_OUTPUT
STRUCTURES
One dimensional arrays of strings are also supported, although since the declaration
also contains a string length, it looks like a 2-dimensional array:
also contains a string length, it looks like a 2-dimensional array:
STRING_INPUT
BUFFER_INPUT
STRING
One and two dimensional arrays of the following types are supported:
INTEGER
LONG_INTEGER
SIGNED_INTEGER
SIGNED_LONG_INTEGER