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

(Created page with "= 另请参考 =")
(Created page with "作为一个安全数组检索 CATable(例如,一个Visual Basic数组、.NET数组等等)。维度的顺序由 SetIndexOrder...")
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
= [[CATable/zh | CATable]]::GetSafeArray( ) =
 
= [[CATable/zh | CATable]]::GetSafeArray( ) =
  
Retrieves the [[CATable]] as a safe array (i.e., a Visual Basic array, .NET array, etc). The ordering of the dimensions is controlled by the [[CATable::SetIndexOrder|SetIndexOrder]] method. The elements of each dimension are indexed 1 to N, where N is the size of each index.
+
作为一个安全数组检索[[CATable/zh | CATable]](例如,一个Visual Basic数组、.NET数组等等)。维度的顺序由[[CATable::SetIndexOrder/zh | SetIndexOrder]] 方法控制。每个维度的元素索引位置从1到N,N为每个索引的大小。
  
When you are reading an array with 2 or more dimensions, you should call [[CATable::SetIndexOrder|SetIndexOrder]] first to ensure the order of dimensions in the result are in the order you would like.
+
当你读取一个具有2个或者更多维度的数组时,你应该先调用[[CATable::SetIndexOrder/zh | SetIndexOrder]]来确保结果中维度的顺序是你想要的顺序。
  
 
= 返回值 =
 
= 返回值 =
Line 23: Line 23:
 
= 另请参考 =
 
= 另请参考 =
  
* [[CATable::GetDataByLabels]], [[CATable::GetDataByElements]]
+
* [[CATable::GetDataByLabels/zh | CATable::GetDataByLabels]][[CATable::GetDataByElements/zh | CATable::GetDataByElements]]
* [[CATable::PutSafeArray]]
+
* [[CATable::PutSafeArray/zh | CATable::PutSafeArray]]
* [[CATable::SetIndexOrder]]
+
* [[CATable::SetIndexOrder/zh | CATable::SetIndexOrder]]

Latest revision as of 09:17, 17 October 2015

ADE User Guide > ADE Server Class Reference > CATable

Other languages:
English • ‎中文

CATable::GetSafeArray( )

作为一个安全数组检索 CATable(例如,一个Visual Basic数组、.NET数组等等)。维度的顺序由 SetIndexOrder 方法控制。每个维度的元素索引位置从1到N,N为每个索引的大小。

当你读取一个具有2个或者更多维度的数组时,你应该先调用 SetIndexOrder来确保结果中维度的顺序是你想要的顺序。

返回值

数组

示例用法

作为一个VB数组获取内容的Visual basic代码

dim Var As CAObject
Dim curTable
curTable = Var.GetSafeArray

另请参考

Comments


You are not allowed to post comments.