[原创]SAP Business One SDK 快速捕获Matrix中选择的行数据

GetNextSelectedRow Method
Description

Returns the index of the selected rows on the matrix. You can get the selected rows by selection order (default) or by row order.

Syntax
Public Function GetNextSelectedRow( _
   Optional ByVal FirstRow As Long = 0, _
   Optional ByVal OrderType As
BoOrderType = 0 _
) As Long
Parameters
FirstRow
A long value specifying the first row from which to start searching.
OrderType
Sets the way in which the method returns results, as described below.
MemberDescriptionValue
ot_SelectionOrder Default. Results are returned by the selection order (0-based). 0
ot_RowOrder Results are returned by the row order (1-based). 1
Remarks

 

If no selection was found the method returns -1 in pVal parameter.

Default value of IRowStart parameter is 0, selection will be searched from the first row.

See Also

Matrix Object

Code:
1 int  row  =  oMatrix.GetNextSelectedRow( 0 , SAPbouiCOM.BoOrderType.ot_SelectionOrder);                    
2                      while  (row  !=   - 1 )
3                      {
4                        string val = ((SAPbouiCOM.EditText)(oMatrix.Columns.Item("m4").Cells.Item(row).Specific)).String;
5                        
6                        row = oMatrix.GetNextSelectedRow(row, SAPbouiCOM.BoOrderType.ot_SelectionOrder);                        
7                    }

转载于:https://www.cnblogs.com/el-net/articles/1194660.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值