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

Line 5: Line 5:
 
= CreateObject(objName,objClass) =
 
= CreateObject(objName,objClass) =
  
在CurrentModule当中建立一个标识符为«objName»,类型为«objClass»的新Analytica对象,并作为一个CAObject返回。
+
在[[CurrentModule | 当前模块]]当中建立一个标识符为«objName»,类型为«objClass»的新Analytica对象,并作为一个[[CAObject/zh | CAObject]]返回。
  
 
= 参 数 =
 
= 参 数 =

Revision as of 09:50, 18 October 2015

ADE User Guide > ADE Server Class Reference > CAEngine

Other languages:
English • ‎中文

CreateObject(objName,objClass)

当前模块当中建立一个标识符为«objName»,类型为«objClass»的新Analytica对象,并作为一个 CAObject返回。

参 数

objName: string - the new object's identifier

objClass
string, one of:
  • "Alias"
  • "Attribute"
  • "Button"
  • "Chance"
  • "Constant"
  • "Decision"
  • "Determ"
  • "Form"
  • "Formnode"
  • "Function"
  • "GraphStyleTemplate"
  • "Index"
  • "Library"
  • "LinkLibrary"
  • "LinkModule"
  • "Model"
  • "Module"
  • "Objective"
  • "Picture"
  • "Text"
  • "Variable"

返回值

CAObject

示例用法

// C#
CAObject obj = ade.CreateObject ("NewVar","Chance");


API 错误

  • 40 – “对象不能建立”
  • 41 – “对象名称无效”
  • 42 – “对象名称已存在”
  • 48 – “无效对象类型”
Comments


You are not allowed to post comments.