Difference between revisions of "CAEngine::CreateObject/zh"
(Created page with "= API 错误 =") |
|||
Line 45: | Line 45: | ||
= API 错误 = | = API 错误 = | ||
− | * 40 – | + | * 40 – “对象不能建立” |
− | * 41 – | + | * 41 – “对象名称无效” |
− | * 42 – | + | * 42 – “对象名称已存在” |
− | * 48 – | + | * 48 – “无效对象类型” |
Revision as of 09:49, 18 October 2015
ADE User Guide > ADE Server Class Reference > CAEngine
CreateObject(objName,objClass)
在CurrentModule当中建立一个标识符为«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"
返回值
示例用法
// C# CAObject obj = ade.CreateObject ("NewVar","Chance");
API 错误
- 40 – “对象不能建立”
- 41 – “对象名称无效”
- 42 – “对象名称已存在”
- 48 – “无效对象类型”
Comments
Enable comment auto-refresher