Difference between revisions of "CAObject::CreateDefTable/zh"

(Created page with "CAObject x = ade.Get("X"); string [] indexList = new string[3]{"I","J","K"}; if (!x.CreateDefTable(indexList)) { Message...")
(Created page with "在指定Analytica对象的属性中建立一个输入表格对象,维度指定为indexList。indexList参数必须包含一个有现有索引标量标识符组成的数组。")
Line 5: Line 5:
 
= bool CreateDefTable(indexList) =
 
= bool CreateDefTable(indexList) =
  
Creates an input table object in the definition attribute of the specified Analytica object with
+
在指定Analytica对象的属性中建立一个输入表格对象,维度指定为indexList。indexList参数必须包含一个有现有索引标量标识符组成的数组。
dimension specified by the indexList. The IndexList parameter must contain an array of identifiers
 
of existing index variables (identical in form to the IndexNames method of class CATable).
 
The number of indexes in indexList determines the number of dimensions of the table. One
 
index can be Self, meaning that one of the dimensions are indexed by the Indexvals attribute of
 
this variable. should be one of the entries in the array. Initially, the input table object’s array is filled
 
with null elements, which can be changed using the SetDataByElements and SetDataByLabels
 
methods of the class CATable.
 
  
 
== 参 数 ==
 
== 参 数 ==

Revision as of 11:56, 23 October 2015

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool CreateDefTable(indexList)

在指定Analytica对象的属性中建立一个输入表格对象,维度指定为indexList。indexList参数必须包含一个有现有索引标量标识符组成的数组。

参 数

«indexList»:一个1维字符串安全数组,包含的名称将作为表格的索引。

返回值

Boolean(布尔值):成功的话为True

关于失败的原因,请参考ErrorCodeErrorText

用法

C#

CAObject x = ade.Get("X");
string [] indexList = new string[3]{"I","J","K"};
if (!x.CreateDefTable(indexList)) {
   MessageBox.Show(ade.ErrorText,"Error creating table", MessageBoxButtons.Ok);
   return;
}
...

另请参考

Comments


You are not allowed to post comments.