Difference between revisions of "Error Messages/40241"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = In call to function Fix_reference, the first parameter, ref, should be a reference or an array of references. = Cause = You passed…') |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Error message examples == | |
− | |||
− | = | ||
− | + | :<code>''In call to function Fix_reference, the first parameter, «ref», should be a reference or an array of references.''</code> | |
+ | |||
+ | == Cause == | ||
− | + | You passed a non reference to a function that expects the parameter to be a [[reference]] or an array of references. Function parameters that have been qualified by the [[Function_Parameter_Qualifiers#Reference|'reference' qualifier]] expects a reference or an array of references and produces this error when a non reference is passed instead. | |
− | + | The following function expects the first parameter, «ref», to be a reference and triggers this error when a non reference is passed to the function. | |
− | + | :<code>Function Fix_reference(ref: reference; add: nonnegative) </code> | |
− | = Remedies = | + | To learn more about function parameter qualifiers, please [[Function Parameter Qualifiers|click here]]. |
+ | |||
+ | == Remedies == | ||
Correct the function call by passing a reference to an object. | Correct the function call by passing a reference to an object. | ||
− | You can create a reference to an Analytica object by using the | + | You can create a reference to an Analytica object by using the <code>\</code> operator. <code>\Obj</code> returns the reference to the object <code>Obj</code>. |
− | The value pointed to a reference can be obtained by using the | + | The value pointed to a reference can be obtained by using the <code>#</code> operator. More on the Analytica reference operator and dereference operator is documented [[Using_References|here]] |
− | + | ==See Also== | |
+ | * [[User-Defined Functions]] | ||
+ | * [[Function calls and parameters]] | ||
+ | * [[Function Parameter Qualifiers]] | ||
+ | * [[References]] |
Latest revision as of 18:37, 23 March 2016
Error message examples
In call to function Fix_reference, the first parameter, «ref», should be a reference or an array of references.
Cause
You passed a non reference to a function that expects the parameter to be a reference or an array of references. Function parameters that have been qualified by the 'reference' qualifier expects a reference or an array of references and produces this error when a non reference is passed instead.
The following function expects the first parameter, «ref», to be a reference and triggers this error when a non reference is passed to the function.
Function Fix_reference(ref: reference; add: nonnegative)
To learn more about function parameter qualifiers, please click here.
Remedies
Correct the function call by passing a reference to an object.
You can create a reference to an Analytica object by using the \
operator. \Obj
returns the reference to the object Obj
.
The value pointed to a reference can be obtained by using the #
operator. More on the Analytica reference operator and dereference operator is documented here
Enable comment auto-refresher