CAObject::CreateDefTable

Revision as of 11:43, 23 October 2015 by Jhuawen (talk | contribs) (Created page with "CAObject x = ade.Get("X"); string [] indexList = new string[3]{"I","J","K"}; if (!x.CreateDefTable(indexList)) { Message...")

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool CreateDefTable(indexList)

Creates an input table object in the definition attribute of the specified Analytica object with 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.

参 数

«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.