以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]状态栏统计出错 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=82738) |
|||
-- 作者:WUZHAN -- 发布时间:2016/3/23 22:12:00 -- [求助]状态栏统计出错 我在项目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.Average, t.TopRow, t.LeftCol, t.BottomRow, t.RightCol) & " " RibbonMenu.StatusBar.Message3 = Str1 只有一列选中后会出现这种错误,这列是字符型16的列 ![]() ![]() |
|||
-- 作者:大红袍 -- 发布时间:2016/3/23 22:15:00 -- 你是不是计算了字符串列? http://foxtable.com/bbs/dispbbs.asp?BoardID=2&ID=82211&skin=0
|
|||
-- 作者:WUZHAN -- 发布时间:2016/3/23 22:30:00 --
|
|||
-- 作者:大红袍 -- 发布时间:2016/3/23 23:58:00 -- 这段代码,没有问题啊 |