Difference between revisions of "CATable::GetSafeArray/zh"
(Created page with "CATable::GetSafeArray") |
(Created page with "作为一个安全数组检索 CATable(例如,一个Visual Basic数组、.NET数组等等)。维度的顺序由 SetIndexOrder...") |
||
(8 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
[[ADE User Guide]] > [[ADE Server Class Reference]] > [[CATable]] | [[ADE User Guide]] > [[ADE Server Class Reference]] > [[CATable]] | ||
<languages /> | <languages /> | ||
− | = [[CATable]]::GetSafeArray( ) = | + | = [[CATable/zh | CATable]]::GetSafeArray( ) = |
− | + | 作为一个安全数组检索[[CATable/zh | CATable]](例如,一个Visual Basic数组、.NET数组等等)。维度的顺序由[[CATable::SetIndexOrder/zh | SetIndexOrder]] 方法控制。每个维度的元素索引位置从1到N,N为每个索引的大小。 | |
− | + | 当你读取一个具有2个或者更多维度的数组时,你应该先调用[[CATable::SetIndexOrder/zh | SetIndexOrder]]来确保结果中维度的顺序是你想要的顺序。 | |
− | = | + | = 返回值 = |
− | + | 数组 | |
− | = | + | = 示例用法 = |
− | + | 作为一个VB数组获取内容的Visual basic代码 | |
<code> | <code> | ||
:dim Var As CAObject | :dim Var As CAObject | ||
Line 21: | Line 21: | ||
</code> | </code> | ||
− | = | + | = 另请参考 = |
− | * [[CATable::GetDataByLabels]] | + | * [[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
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
Enable comment auto-refresher