Difference between revisions of "Error Messages/41027"

 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
= Error Message Examples =
+
[[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.
  Each indexes passed to Array must all be different.
+
  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>  
Array( IndexA, IndexB, IndexC, Values);
 
</code>  
 
 
 
  
= Remedies =
+
== Remedies ==
  
Correct the indexes passed to the [[Array]] function so all the indexes are unique. If you want to 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.
+
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.
  
<br><comments />
+
==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


You are not allowed to post comments.