User`s guide

C Utility Library
All indices and field name This format accesses an array element of
a multidim ensional array by specifying
n
indices. These statements access all four of
the elements of the array in the previous
example:
For I From 1 To 2
For J From 1 To 2
r(I, J) = x(I, J, "red")
g(I, J) = x(I, J, "green")
b(I, J) = x(I, J, "blue")
Next
Next
Array of indices and f ield
name
This format accesses an array element by
passing an array of indices and a field name.
The following example rewrites the previous
example using an index array:
Dim Index(1 To 2) As Integer
For I From 1 To 2
Index(1) = I
For J From 1 To 2
Index(2) = J
r(I, J) = x(Index, "red")
g(I, J) = x(Index, "green")
b(I, J) = x(Index, "blue")
Next
Next
With these four formats, the Item prope rty provides a very flexible indexing
mechanism for structure arrays. Also note:
You can combine the last two indexing formats. Several index arguments
supplied in either scalar or array format are concatenated to form one
index set. The combining stops when the num ber of dimensions has been
reached. For example:
C-20