|
Assigns an index position for a mulidimensional array. See
If you think of a single dimension array as an simple numbered list, a two dimension array can be though of as a spreadsheet with numbered rows and columns. Miva Script provides flexible tools for creating even more complex data structures. Miva Script arrays are fully multi-dimensional (up to the limits of the system). If a value is assigned to an index or member that did not previously exist, the entry will be created. Attributes
Only allowed between <MvASSIGNARRAY> and </MvASSIGNARRAY>. Two Dimensional ArrayAn tabular representation the array declared below could look like this.
Example:<MvASSIGNARRAY NAME = "l.coordinates" VALUE = "{ 100 }">
<MvDIMENSION INDEX = "1">
<MvDIMENSION INDEX = "1">
</MvASSIGNARRAY>
<MvASSIGNARRAY NAME = "l.coordinates" VALUE = "{ 200 }">
<MvDIMENSION INDEX = "1">
<MvDIMENSION INDEX = "2">
</MvASSIGNARRAY>
<MvASSIGNARRAY NAME = "l.coordinates" VALUE = "{ 300 }">
<MvDIMENSION INDEX = "2">
<MvDIMENSION INDEX = "1">
</MvASSIGNARRAY>
<MvASSIGNARRAY NAME = "l.coordinates" VALUE = "{ 400 }">
<MvDIMENSION INDEX = "2">
<MvDIMENSION INDEX = "2">
</MvASSIGNARRAY>
<MvEVAL EXPR="{ l.coordinates[2][1] }"><br>
result: 300
|