CATable::Slice

Revision as of 09:37, 17 October 2015 by Jhuawen (talk | contribs) (Created page with "当应用于一个1维表格、结果为0维表格结果(只包含一个 基元值的非数组)时。此时,CATable::AtomicValue/zh | CATa...")

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

Slice(indexObj, n)

Returns the nth slice of the table over index «indexObj». The result is a new CATable object with one fewer dimensions than the table to which it is applied. When used on a DefTable, the sliced DefTable acts as a SubTable, changing elements in the slice of the original table.

参 数

indexObj
CAObject
n
Integer – the 1-based slice position along index

返回值

CATable

示例用法

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

说明

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

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

另请参考

Comments


You are not allowed to post comments.