Difference between revisions of "Error Messages/40241"

(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:
= Error Message Examples  =
+
[[Category: Error messages]]
  
  In call to function Fix_reference, the first parameter, ref, should be a reference or an array of references.
+
== Error message examples ==
             
 
= 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.
+
:<code>''In call to function Fix_reference, the first parameter, «ref», should be a reference or an array of references.''</code>
 +
 +
== Cause  ==
  
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.  
+
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.  
  
<code>Function Fix_reference( ref: reference: add: nonnegative) </code>
+
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.
  
To learn more about function parameter qualifier, please [[Function Parameter Qualifiers|click here]].
+
:<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 '''\''' operator. \Obj returns the reference to the object Obj.  
+
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 '''#''' operator. More on the Analytica reference operator and dereference operator is documented [[Using_References|here]]
+
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]]
  
<br> <br><comments />
+
==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

See Also

Comments


You are not allowed to post comments.