Foxtable(狐表)用户栏目专家坐堂 → [求助]表格数据合计


  共有947人关注过本帖树形打印复制链接

主题:[求助]表格数据合计

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107028 积分:544371 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2023/11/8 11:42:00 [显示全部帖子]

Dim it As Winform.StripItem = Forms("窗口").Strips("状态栏").Items("Total")
    Dim t As Table = e.Table
    it.Text = ""
    If t.Cols(t.ColSel).IsNumeric Then '如果当前列是数值列
 dim sum as double
for i as integer = t.TopRow to t.BottomRow
if t.rows(i).visible then
sum  += t.rows(i)(t.ColSel)
end if
        it.Text = "合计:  " & sum  
    End If

 回到顶部