| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
STD:Fill Array The fill array module provides a simple way of setting array elements. Values to enter are explicitly listed (with an optional count field for multiple entries of the same value) and are assigned to the array starting at index 1.
STD:Fill Array user interface configured with an example:

Array. The name of the array to fill. Here the target array is
`X1'.
The Elements listcontrol is used to specify values to enter.
Value. This field takes the constant value to enter into the
array. The value is entered as-is--it is not intepreted or modified in
any way (notably, variable substitutions do not occur). Here, the
values to enter into `X1' are `hello', `how', `are',
`you' and `14'.
Count. The number of times to enter the corresponding value, to
simplify entering the same value many times. Must be a constant
integer, not an expression. By default, this field is 1, i.e. each
value is only entered once. Here, we specify that `hello' is entered
3 times, `how' twice, and `14' also three times.
The Current Size label is not an entry field. It is just a label
that is dynamically updated to be the sum of the count fields, so the
user knows at a glance how many elements have been specified.
The following assignments will happen by this instance
of the STD:Fill Array module:
X1(1) = hello X1(2) = hello X1(3) = hello X1(4) = how X1(5) = how X1(6) = are X1(7) = you X1(8) = 14 X1(9) = 14 X1(10) = 14 |
STD:Fill Array attribute list:
| Attribute | Type | Default | Description |
var |
array name | (blank) | array to fill |
fields (1) |
value | (blank) | value to enter in array |
fields (2) |
value | 1 | number of times to enter value |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |