CATable::Slice

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

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

Slice(indexObj, n)

返回«indexObj»索引上的第n個表格切片。結果是一個新的CATable對象,維度比該表格更少。當在DefTable上使用時,被切割的DefTable充當一個子表,改變原表格中切片上的元素。

參 數

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中介紹,充當一個子表

當應用於一個1維表格、結果為0維表格結果(只包含一個基元值的非數組)時。此時,CATable::AtomicValue方法用來存儲該值。

另請參考

Comments


You are not allowed to post comments.