壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2109|回复: 1

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

[复制链接]
发表于 2008/12/26 12:11:15 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
GetNextSelectedRow Method
DescriptionReturns the index of the selected rows on the matrix. You can get the selected rows by selection order (default) or by row order.
SyntaxPublic Function GetNextSelectedRow( _
   Optional ByVal FirstRow As Long = 0, _
   Optional ByVal OrderType As
BoOrderType
= 0 _
) As Long

ParametersFirstRow 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 AlsoMatrix Object

Code:
1int 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                    }
发表于 2010/6/10 10:35:15 | 显示全部楼层
不错,学习了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/29 04:55 , Processed in 0.013268 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表