Difference between revisions of "CAObject::Evaluate"
(Created page with "= CAObject::Evaluate(expr) = Parses and evaluates an Analytica expression, «expr». Uses the number format from the CAObject for those operations that require a number...") |
(Marked this version for translation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:ADE User Guide]] | |
+ | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CAObject]] | ||
+ | <languages /> | ||
+ | <translate> | ||
+ | = [[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> |
Latest revision as of 00:43, 16 June 2015
ADE User Guide > ADE Server Class Reference > CAObject
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
Enable comment auto-refresher