DRAW Reference Manual
Intelligent Text
: Array Index
Array Index
The format used for the array indices is:
[
n
] or [
n
,
m
]
where
n
and
m
are integers and
m
is greater than
n
. The first format generates a single array element; the second generates a range of array elements. For example:
#CRFA[2]
#:ARRAY[4,6]
Embedded spaces are allowed within an array index but are not mandatory. In the second format, one of the integers can be omitted. Omission of the first integer implies
n
=1, and omission of the second implies
m
=K, where K is the significant length of the array.
Array indices can be used (where appropriate) with both basic and UDA codewords.
Array indices cannot be used with text, displacement, or direction attributes but can be used with all positional codewords. Refer to
Access Data from the Design or Catalogue Databases
for further information.
The length of an array attribute can be extracted and applied to a sheet using:
‘codeword[SIZE]’
SIZE can be abbreviated to 'S' and can be lower-case. The [SIZE] suffix can be used with any hash code-word for which array indices are valid.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.