Difference between revisions of "Error Messages/40778"

 
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
 +
== Error message examples ==
 +
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 
  The value of Variable A is being used by B before it has been set. The value of A should be set by B,
 
  The value of Variable A is being used by B before it has been set. The value of A should be set by B,
 
  and cannot be used directly or indirectly by B until it has already been set.
 
  and cannot be used directly or indirectly by B until it has already been set.
 +
</pre>
  
= Cause =
+
== Cause ==
  
 
An object responsible for setting the value of another variable is trying to use the value of the variable before setting it. The following example would trigger this error.
 
An object responsible for setting the value of another variable is trying to use the value of the variable before setting it. The following example would trigger this error.
  
Definition of Object '''A''':<br>
+
Definition of Object '''A''':
<Code>[[ComputedBy]](B)</Code>
+
:<code>ComputedBy(B)</Code>
  
Definition of Object '''B''':<br>
+
Definition of Object '''B''':
<Code>
+
<pre style="background:white; border:white; margin-left: 1em;">
Var x := A + 5;<br>
+
Var x := A + 5;
A := 417;<br>
+
A := 417;
 
...
 
...
</code>
+
</pre>
 
 
= Remedies =
 
  
 +
== Remedies ==
 
Correct the definition of the object responsible for computing the value of the another variable so that it sets the variable before it uses it.
 
Correct the definition of the object responsible for computing the value of the another variable so that it sets the variable before it uses it.
  
<br><comments />
+
==See Also==
 +
* [[Objects and Values]]
 +
* [[Definition]]

Latest revision as of 00:31, 12 March 2016


Error message examples

 The value of Variable A is being used by B before it has been set. The value of A should be set by B,
 and cannot be used directly or indirectly by B until it has already been set.

Cause

An object responsible for setting the value of another variable is trying to use the value of the variable before setting it. The following example would trigger this error.

Definition of Object A:

ComputedBy(B)

Definition of Object B:

Var x := A + 5;
A := 417;
...

Remedies

Correct the definition of the object responsible for computing the value of the another variable so that it sets the variable before it uses it.

See Also

Comments


You are not allowed to post comments.