Difference between revisions of "CATable::GetDataByElements/zh"

(Created page with "维度的顺序,同它们在«indexPositions»中所列出一样,由前面调用 CATable::SetIndexOrder决定。")
(Created page with "返回值是表格单元的值。该值返回的方式由 CATable::RenderingStyle决定。")
Line 10: Line 10:
 
维度的顺序,同它们在«indexPositions»中所列出一样,由前面调用[[CATable::SetIndexOrder/zh | CATable::SetIndexOrder]]决定。
 
维度的顺序,同它们在«indexPositions»中所列出一样,由前面调用[[CATable::SetIndexOrder/zh | CATable::SetIndexOrder]]决定。
  
The return value is the value of the table cell.  The manner in which this value is returned is determined by the [[CATable::RenderingStyle]].  
+
返回值是表格单元的值。该值返回的方式由[[CATable::RenderingStyle/zh | CATable::RenderingStyle]]决定。  
  
 
When the result table is zero-dimensional (i.e., atomic, not an array), you must use [[CATable::AtomicValue]] to access the value.
 
When the result table is zero-dimensional (i.e., atomic, not an array), you must use [[CATable::AtomicValue]] to access the value.

Revision as of 09:07, 17 October 2015

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

CATable::GetDataByElements(indexPositions)

根据«indexPositions»检索输入表格单元的值,«indexPositions»沿表格中索顺序指明位置(从1开始)。

参数说明表格单元的作弊,通过使用索引方向上的位置,1作为第一个元素( CATable::GetDataByLabels通过使用索引标签来实现)。

维度的顺序,同它们在«indexPositions»中所列出一样,由前面调用 CATable::SetIndexOrder决定。

返回值是表格单元的值。该值返回的方式由 CATable::RenderingStyle决定。

When the result table is zero-dimensional (i.e., atomic, not an array), you must use CATable::AtomicValue to access the value.

Examples

In VB

dim editTab as CATable = var2d.DefTable
dim coord(1)   ' Contains two elements, (0) and (1)
coord(0) = 3
coord(1) = 2
editTab.SetIndexOrder( Split("I,J",",") )

ET = editTab.GetDataByElements(coord)
dim resTab as CATable = var2d.ResultTable
resTab.SetIndexOrder( Split("I,J",","))
RT = resultTab.GetDataByElements(coord)
RT1 = var1d.ResultTable.GetDataByElements(4)

Error Codes

24 – “Subscripts must be an array of variants”
25 – “Subscripts cannot be accessed”
26 – “Lower bound of subscript array inaccessible”
27 – “Upper bound of subscript array inaccessible”
28 – “Must specify at least one element in table”
30 – “Position does not exist”

See Also

Comments


You are not allowed to post comments.