Difference between revisions of "Error Messages/40265"
Line 25: | Line 25: | ||
==See Also== | ==See Also== | ||
− | * [[ | + | * [[Tutorial: Arrays]] |
* [[Arrays and Indexes]] | * [[Arrays and Indexes]] | ||
* [[Array]] | * [[Array]] | ||
* [[Index..Do]] | * [[Index..Do]] | ||
* [[IgnoreWarnings]] | * [[IgnoreWarnings]] |
Latest revision as of 19:17, 28 April 2016
Warning text
In the function Array, the size of the index J does not match the size of the data to be re-indexed. If you ignore, the data will be truncated or padded with null values to match the length of the index.
Cause
Suppose you have an index defined:
Index J := [1, 2, 3, 4]
Then if you evaluate the expression:
Array(J, ['a', 'b'])
the warning will result, since J has 4 elements and you've supplied only two items. In this example, the result will be an array indexed by J, but with the last two elements set to Null.
Remedy
If this is as you intended, then ignore, or better, place the expression inside IgnoreWarnings(...)
.
See Also
Comments
Enable comment auto-refresher