Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共4 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]GetCheckedRows用法!

1楼
rophy0952 发表于:2023/12/30 18:53:00
老师,好!如何对勾选行的数据列进行求和,每勾选一次,重新进行一次求和。谢谢
2楼
wyz20130512 发表于:2023/12/30 20:17:00

在表的AfterCheckRow事件中写求和代码即可。

3楼
有点蓝 发表于:2024/1/1 20:21:00
Dim rs As List(of Row) = Tables("订单").GetCheckedRows()
dim sum as double
For Each 
r As Row in rs
   
sum  = sum  + r("s数据列"))
Next
msgbox(sum)
4楼
rophy0952 发表于:2024/1/2 10:24:00
解决了,谢谢老师们!
共4 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.