CAObject::CreateDefTable

This page is a translated version of the page CAObject::CreateDefTable and the translation is 100% complete.

ADE User Guide > ADE Server Class Reference > CAObject

Other languages:
English • ‎中文

bool CreateDefTable(indexList)

在指定Analytica對象的屬性中建立一個輸入表格對象,維度指定為indexList。indexList參數必須包含一個由現有索引標量標識符組成的數組(形式與CATable類型IndexNames方法相同)。 indexList中索引的數量決定表格的維數。其中一個索引可以是Self,意味着其中一個維度被該變量的Indexvals屬性索引,應該是該數組中的條目之一。最初,輸入表格對象的數組元素都為null(空值),可以使用CATable類型的etDataByElements和SetDataByLabels改變。

參 數

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