Difference between revisions of "Error Messages/40245"
AManandhar (talk | contribs) (Created page with '= Error Text = In call to function My_sum, the first parameter, X, should be in descending order. = Cause = You have called a function that requires the values in the array p…') |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error text == | |
− | = Cause = | + | :<code>''In call to function My_sum, the first parameter, X, should be in descending order.''</code> |
+ | |||
+ | == Cause == | ||
You have called a function that requires the values in the array passed to the parameter to be in descending order, but the values in the array were not in descending order. | You have called a function that requires the values in the array passed to the parameter to be in descending order, but the values in the array were not in descending order. | ||
Line 9: | Line 11: | ||
For a function parameter declared as follows, | For a function parameter declared as follows, | ||
− | < | + | :<code>Function My_sum(X : descending)</code>) |
− | Function My_sum( X : descending) | ||
− | </ | ||
calling the function as called below would trigger this error as the array passed is not in descending order. | calling the function as called below would trigger this error as the array passed is not in descending order. | ||
− | <code>My_sum( [4, 1, 7] )</code> | + | :<code>My_sum([4, 1, 7])</code> |
− | = Remedies = | + | == Remedies == |
Pass an array with values in descending order as the indicated parameter to the function. | Pass an array with values in descending order as the indicated parameter to the function. | ||
You can use the [[Sort]] function to sort an array in ascending or descending order. | You can use the [[Sort]] function to sort an array in ascending or descending order. | ||
+ | |||
+ | ==See Also== | ||
+ | * [[User-Defined Functions]] | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[Function Parameter Qualifiers]] |
Latest revision as of 19:04, 24 March 2016
Error text
In call to function My_sum, the first parameter, X, should be in descending order.
Cause
You have called a function that requires the values in the array passed to the parameter to be in descending order, but the values in the array were not in descending order.
For a function parameter declared as follows,
Function My_sum(X : descending)
)
calling the function as called below would trigger this error as the array passed is not in descending order.
My_sum([4, 1, 7])
Remedies
Pass an array with values in descending order as the indicated parameter to the function.
You can use the Sort function to sort an array in ascending or descending order.
See Also
Comments
Enable comment auto-refresher