Difference between revisions of "Error Messages/41027"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = In the call to Function Array, the index IndexA is listed more than once. Each indexes passed to Array must all be different. = Cause = An index p…') |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
+ | == Error message examples == | ||
+ | |||
+ | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> | ||
In the call to Function Array, the index IndexA is listed more than once. | In the call to Function Array, the index IndexA is listed more than once. | ||
− | + | All indexes passed to Array must be different. | |
+ | </pre> | ||
− | = Cause = | + | == Cause == |
An index passed to the [[Array]] function was repeated, which is not allowed as all indexes in an [[Array]] must be unique. The following call to [[Array]] would trigger this error: | An index passed to the [[Array]] function was repeated, which is not allowed as all indexes in an [[Array]] must be unique. The following call to [[Array]] would trigger this error: | ||
− | <code> | + | :<code>Array(IndexA, IndexB, IndexA, Values);</code> |
− | |||
− | </code> | ||
− | |||
− | = Remedies = | + | == Remedies == |
− | Correct the indexes passed to the [[Array]] function so all the indexes are unique. If you | + | Correct the indexes passed to the [[Array]] function so all the indexes are unique. If you want to index the array with two indexes with the same dimensions, you may want to define the second index by using [[CopyIndex]] and passing the first index to it. |
− | + | ==See Also== | |
+ | * [[Function calls and parameters]] | ||
+ | * [[Array]] | ||
+ | * [[Arrays and Indexes]] | ||
+ | * [[CopyIndex]] |
Latest revision as of 21:21, 6 April 2016
Error message examples
In the call to Function Array, the index IndexA is listed more than once. All indexes passed to Array must be different.
Cause
An index passed to the Array function was repeated, which is not allowed as all indexes in an Array must be unique. The following call to Array would trigger this error:
Array(IndexA, IndexB, IndexA, Values);
Remedies
Correct the indexes passed to the Array function so all the indexes are unique. If you want to index the array with two indexes with the same dimensions, you may want to define the second index by using CopyIndex and passing the first index to it.
See Also
Comments
Enable comment auto-refresher