Difference between revisions of "Error Messages/40178"

 
Line 1: Line 1:
= Example Error Message =
+
[[Category: Error messages]]
  
 +
== Example error message ==
 +
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 
  Lexical error at line 6 while checking:
 
  Lexical error at line 6 while checking:
     taxTable[taxTableField=<font color=red>'rate</font>, incomeThreshold=incomeLevel]
+
     taxTable[taxTableField='rate, incomeThreshold=incomeLevel]
 
  &nbsp;
 
  &nbsp;
 
  Text literal is missing the closing quote (') character.
 
  Text literal is missing the closing quote (') character.
 
  Do you want to edit the Definition of Marginal_tax_rate?
 
  Do you want to edit the Definition of Marginal_tax_rate?
 +
</pre>
  
= Cause =
+
== Cause ==
  
A literal text value must be surrounded by matching opening and closing quotes.  It can be surrounded either with single quotes, such as '' 'rate' '', or it may be surrounded with double quotes such as '' "rate" ''.  However, if you forget the closing quote, or if the closing quote doesn't match the opening quote, this error occurs when Analytica attempts to parse the expression.  In the example above, the red color highlights the text literal where the quote is missing (note that this coloration appears here, but does not appear in Analytica's error message -- because the quote is missing, it would have no way of knowing where the end of the literal should be).
+
A literal text value must be surrounded by matching opening and closing quotes.  It can be surrounded either with single quotes, such as '' 'rate' '', or it may be surrounded with double quotes such as '' "rate" ''.  However, if you forget the closing quote, or if the closing quote doesn't match the opening quote, this error occurs when Analytica attempts to parse the expression.  
  
= Remedy =
+
== Remedy ==
 +
Press '''Edit Definition''' and insert the closing quote.
  
Press '''Edit Definition''' and insert the closing quote.
+
==See Also==
 +
* [[Objects and Values]]
 +
* [[Definition]]
 +
* [[Expression Assist]]

Latest revision as of 00:37, 12 March 2016


Example error message

 Lexical error at line 6 while checking:
    taxTable[taxTableField='rate, incomeThreshold=incomeLevel]
  
 Text literal is missing the closing quote (') character.
 Do you want to edit the Definition of Marginal_tax_rate?

Cause

A literal text value must be surrounded by matching opening and closing quotes. It can be surrounded either with single quotes, such as 'rate' , or it may be surrounded with double quotes such as "rate" . However, if you forget the closing quote, or if the closing quote doesn't match the opening quote, this error occurs when Analytica attempts to parse the expression.

Remedy

Press Edit Definition and insert the closing quote.

See Also

Comments


You are not allowed to post comments.