CATable::Subscript
Revision as of 09:48, 17 October 2015 by Jhuawen (talk | contribs) (Created page with "DefTable(确定性表)上 CATable::Subscript(..) 的使用在4.2.3中介绍,充当一个 子表。")
ADE User Guide > ADE Server Class Reference > CATable
Subscript(indexObj, label)
Returns a slice of a table for which index «indexObj» is equal to «label». It returns a new CATable object with one fewer dimension than the original table. When used on a DefTable, the sliced DefTable acts as a SubTable, changing elements in the slice of the original table.
参 数
- indexObj
- CAObject
- label
- variant – the label in the index
返回值
示例用法
CATable tab = obj. ResultTable; CAIndex in1 = tab. GetIndexObject("In1"); CATable subTab = obj.Slice(in1,1)
说明
DefTable(确定性表)上 CATable::Subscript(..) 的使用在4.2.3中介绍,充当一个 子表。
When applied to a 1-D table, a 0-D table result, which is a non-array containing only one atomic value. At that point, the CATable::AtomicValue method is used to access the value.
See Also
Comments
Enable comment auto-refresher