Difference between revisions of "CAEngine::GetObjectByName/zh"

(Created page with "= 示例用法 = // C# CAObject obj; obj = ade.GetObjectByName("Monthly_revenue"); obj = ade.Get("Monthly_revenue"); // alternate equiv. form")
(Created page with "= API 错误 =")
Line 26: Line 26:
  
  
= API errors =
+
= API 错误 =
  
 
* 41 - "invalid name for object"
 
* 41 - "invalid name for object"

Revision as of 06:44, 17 October 2015

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

GetObjectByName(objName)

Get(objName)

Either of these synonymous methods return an object of type CAObject for an existing Analytica object with identifier «objName».

This is the primary method used for obtaining instances of Analytica objects, and hence is one of the most commonly used methods in ADE. Because it is so common, the Get synonym is provided.

参 数

objName:字符串——Analytica标识符,不分大小写

返回值

CAObject

示例用法

// C#
CAObject obj;
obj = ade.GetObjectByName("Monthly_revenue");
obj = ade.Get("Monthly_revenue");  // alternate equiv. form


API 错误

  • 41 - "invalid name for object"
Comments


You are not allowed to post comments.