Difference between revisions of "CAObject::Evaluate"

(Marked this version for translation)
 
Line 4: Line 4:
 
<translate>
 
<translate>
  
= [[CAObject]]::Evaluate(expr) =
+
= [[CAObject]]::Evaluate(expr) = <!--T:1-->
  
 +
<!--T:2-->
 
Parses and evaluates an Analytica expression, «expr».
 
Parses and evaluates an Analytica expression, «expr».
  
 +
<!--T:3-->
 
Uses the number format from the [[CAObject]] for those operations that require a number format.  For example, [[Text_Concatenation_Operator:_%26|Text Concatenation]] uses the number format when coercing a numeric value to text (e.g., <code>"Pi="&Pi</code>).
 
Uses the number format from the [[CAObject]] for those operations that require a number format.  For example, [[Text_Concatenation_Operator:_%26|Text Concatenation]] uses the number format when coercing a numeric value to text (e.g., <code>"Pi="&Pi</code>).
  
 +
<!--T:4-->
 
The result, when successful, is a [[CATable]]
 
The result, when successful, is a [[CATable]]
  
= Example (C#) =
+
= Example (C#) = <!--T:5-->
  
  [[CATable]] res = obj.Evaluate("[[Sum]](revenue,division)");
+
  <!--T:6-->
 +
[[CATable]] res = obj.Evaluate("[[Sum]](revenue,division)");
  
= API Error Codes =
+
= API Error Codes = <!--T:7-->
  
 +
<!--T:8-->
 
* 35 - Attribute could not be retrieved
 
* 35 - Attribute could not be retrieved
  
= See Also =
+
= See Also = <!--T:9-->
  
 +
<!--T:10-->
 
* [[CATable]]
 
* [[CATable]]
 
* [[CAObject::ResultTable]]
 
* [[CAObject::ResultTable]]
 
* [[CAEngine::SendCommand]]
 
* [[CAEngine::SendCommand]]
 
</translate>
 
</translate>

Latest revision as of 00:43, 16 June 2015

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

CAObject::Evaluate(expr)

Parses and evaluates an Analytica expression, «expr».

Uses the number format from the CAObject for those operations that require a number format. For example, Text Concatenation uses the number format when coercing a numeric value to text (e.g., "Pi="&Pi).

The result, when successful, is a CATable

Example (C#)

CATable res = obj.Evaluate("Sum(revenue,division)");

API Error Codes

  • 35 - Attribute could not be retrieved

See Also

Comments


You are not allowed to post comments.