Difference between revisions of "Error Messages/40637"
AManandhar (talk | contribs) m (→Cause) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | In call to function Calculate_BMI, the first parameter, | + | == Error message examples == |
+ | |||
+ | <pre style="background:white; border:white; margin-left: 1em; font-style:italic"> | ||
+ | In call to function Calculate_BMI, the first parameter, «weight», should be a positive value, | ||
but the array passed to this parameter contains a value that is not a positive number at coordinate: | but the array passed to this parameter contains a value that is not a positive number at coordinate: | ||
− | + | ArrayOfWeight = -126. | |
+ | </pre> | ||
− | = Cause = | + | == Cause == |
You passed an array with a non positive value to a functions that expects the parameter to be a positive value or an array of positive values. Function parameters that have been qualified by the [[Function_Parameter_Qualifiers#Positive|'positive' qualifier]] expects a positive value or an array of positive value, and produces this error on passing a non positive value. | You passed an array with a non positive value to a functions that expects the parameter to be a positive value or an array of positive values. Function parameters that have been qualified by the [[Function_Parameter_Qualifiers#Positive|'positive' qualifier]] expects a positive value or an array of positive value, and produces this error on passing a non positive value. | ||
Line 11: | Line 15: | ||
The following function expects the first parameter, weight, to be a positive value and throws this error when an array with non positive values is passed to it. | The following function expects the first parameter, weight, to be a positive value and throws this error when an array with non positive values is passed to it. | ||
− | <code>Function Calculate_BMI( weight: positive; height: positive) </code> | + | :<code>Function Calculate_BMI(weight: positive; height: positive) </code> |
To learn more about function parameter qualifier, please [[Function Parameter Qualifiers|click here]]. | To learn more about function parameter qualifier, please [[Function Parameter Qualifiers|click here]]. | ||
− | = Remedies = | + | == Remedies == |
Correct the value in the array passed to the function at the specified coordinate. | Correct the value in the array passed to the function at the specified coordinate. | ||
− | + | ==See Also== | |
− | + | * [[Function calls and parameters]] | |
+ | * [[Function Parameter Qualifiers]] | ||
+ | * [[User-Defined Functions]] | ||
+ | * [[Numbers]] | ||
+ | * [[Objects and Values]] | ||
+ | * [[Arrays and Indexes]] |
Latest revision as of 20:36, 31 March 2016
Error message examples
In call to function Calculate_BMI, the first parameter, «weight», should be a positive value, but the array passed to this parameter contains a value that is not a positive number at coordinate: ArrayOfWeight = -126.
Cause
You passed an array with a non positive value to a functions that expects the parameter to be a positive value or an array of positive values. Function parameters that have been qualified by the 'positive' qualifier expects a positive value or an array of positive value, and produces this error on passing a non positive value.
The following function expects the first parameter, weight, to be a positive value and throws this error when an array with non positive values is passed to it.
Function Calculate_BMI(weight: positive; height: positive)
To learn more about function parameter qualifier, please click here.
Remedies
Correct the value in the array passed to the function at the specified coordinate.
See Also
Comments
Enable comment auto-refresher