Foxtable(狐表)用户栏目专家坐堂 → 求和


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

主题:求和

帅哥哟,离线,有人找我吗?
nxdx112
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:一尾狐 帖子:410 积分:3746 威望:0 精华:0 注册:2016/11/12 18:42:00
求和  发帖心情 Post By:2025/5/12 10:58:00 [只看该作者]

类似excel中这样显示求和,在foxtable 中怎样实现?
图片点击可在新窗口打开查看此主题相关图片如下:360截图20250512105631266.jpg
图片点击可在新窗口打开查看

 回到顶部
帅哥哟,离线,有人找我吗?
cd_tdh
  2楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:狐精 帖子:3243 积分:21547 威望:0 精华:0 注册:2016/3/28 16:57:00
  发帖心情 Post By:2025/5/12 11:06:00 [只看该作者]

项目事件,SystemIdle事件写代码
'自动计算
Dim str3 As String = ""
Dim t As Table = CurrentTable

    Str3 = Str3 & "计数:" & t.Aggregate(AggregateEnum.Count, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & ""
    Str3 = Str3 & "  累计:" & t.Aggregate(AggregateEnum.Sum, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & ""
    Str3 = Str3 & "  平均:" & t.Aggregate(AggregateEnum.Average, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & ""
    'Str3 = Str3 & "  最大:" & t.Aggregate(AggregateEnum.Max, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "
    'Str3 = Str3 & "  最小:" & t.Aggregate(AggregateEnum.Min, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "
    'Str3 = Str3 & "标准差:" & t.Aggregate(AggregateEnum.Std, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "
    'Str3 = Str3 & "总体标准差:" & t.Aggregate(AggregateEnum.StdPop, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "
    'Str3 = Str3 & "方差:" & t.Aggregate(AggregateEnum.Var, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "
    'Str3 = Str3 & "总体方差:" & t.Aggregate(AggregateEnum.VarPop, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " "


 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:113802 积分:579589 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2025/5/12 11:50:00 [只看该作者]


 回到顶部