Difference between revisions of "Error Messages/40246"

 
Line 1: Line 1:
= Error Text =
+
[[Category: Error messages]]
  
 +
== Error text ==
 +
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 
  In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified
 
  In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified
 
  as ascending or descending, it must have only one dimension. (Alternatively, consider rewriting
 
  as ascending or descending, it must have only one dimension. (Alternatively, consider rewriting
  the function to specify parameter X with one dimension, e.g., "X : Ascending ArrayType[ j ]; j: Index"
+
  the function to specify parameter X with one dimension, e.g., "X: Ascending ArrayType[j]; j: Index"
 +
</pre>
  
= Cause =
+
== Cause ==
  
 
You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.
 
You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.
Line 11: Line 15:
 
Defining the function parameter to accept a one dimensional array and the index for the dimension would make the [[User-Defined_Functions|UDF]] easier to understand.
 
Defining the function parameter to accept a one dimensional array and the index for the dimension would make the [[User-Defined_Functions|UDF]] easier to understand.
  
= Remedies =
+
== Remedies ==
  
 
Pass a one dimensional array as the indicated parameter to the function.
 
Pass a one dimensional array as the indicated parameter to the function.
 +
 +
==See Also==
 +
* [[User-Defined Functions]]
 +
* [[Function calls and parameters]]
 +
* [[Function Parameter Qualifiers]]
 +
* [[Arrays and Indexes]]

Latest revision as of 19:07, 24 March 2016


Error text

 In call to function My_sum, the first parameter, X, has more than one dimension. Since X is specified
 as ascending or descending, it must have only one dimension. (Alternatively, consider rewriting
 the function to specify parameter X with one dimension, e.g., "X: Ascending ArrayType[j]; j: Index"

Cause

You passed a multidimensional array as a parameter to a function that expects the parameter to be an ascending or descending array. You can only pass a one dimensional array to a function parameter that is expected to be ascending or descending.

Defining the function parameter to accept a one dimensional array and the index for the dimension would make the UDF easier to understand.

Remedies

Pass a one dimensional array as the indicated parameter to the function.

See Also

Comments


You are not allowed to post comments.