以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]2022-5-14的预览版运行SystemIdle事件报错 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=177262) |
-- 作者:天一生水 -- 发布时间:2022/5/14 19:53:00 -- [求助]2022-5-14的预览版运行SystemIdle事件报错 老师好! 安装最新预览版后,启动项目,SystemIdle事件运行出错: Dim str1 As String = "" Dim t As Table = CurrentTable Str1 = Str1 & "计数:" & t.Aggregate(AggregateEnum.Count, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "求和:" & t.Aggregate(AggregateEnum.sum, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "最大:" & t.Aggregate(AggregateEnum.Max, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "最小:" & t.Aggregate(AggregateEnum.Min, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "标准差:" & t.Aggregate(AggregateEnum.Std, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "总体标准差:" & t.Aggregate(AggregateEnum.StdPop, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "方差:" & t.Aggregate(AggregateEnum.Var, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " StatusBar.Message3 = str1 |
-- 作者:狐狸爸爸 -- 发布时间:2022/5/14 20:15:00 -- 收到 |
-- 作者:狐狸爸爸 -- 发布时间:2022/5/14 20:23:00 -- 先加个判断: Dim str1 As String = "" Dim t As Table = CurrentTable If t.TopRow >= 0 Then Str1 = Str1 & "计数:" & t.Aggregate(AggregateEnum.Count, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "求和:" & t.Aggregate(AggregateEnum.sum, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "最大:" & t.Aggregate(AggregateEnum.Max, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " Str1 = Str1 & "最小:" & t.Aggregate(AggregateEnum.Min, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "标准差:" & t.Aggregate(AggregateEnum.Std, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "总体标准差:" & t.Aggregate(AggregateEnum.StdPop, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " \'Str1 = Str1 & "方差:" & t.Aggregate(AggregateEnum.Var, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " End If StatusBar.Message3 = str1 |