CATable::Subscript

This page is a translated version of the page CATable::Subscript and the translation is 100% complete.

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

Subscript(indexObj, label)

返回一个表格的切片,对此索引«indexObj»等价于«label»。返回一个新的CATable对象,比原表格维度更少。当在DefTable上使用时,被切割的DefTable充当一个子表,改变原表格切片中的元素。

参 数

indexObj
CAObject
label
variant – the label in the index

返回值

CATable

示例用法

CATable tab = obj.ResultTable;
CAIndex in1 = tab.GetIndexObject("In1");
CATable subTab = obj.Slice(in1,1)

说明

DefTable(确定性表)上CATable::Subscript(..) 的使用在4.2.3中介绍,充当一个子表

当应用于一个1维表格、结果为0维表格结果(只包含一个AtomicValue的非数组)时。此时,CATable::AtomicValue方法用来访问该值。

另请参考

Comments


You are not allowed to post comments.