以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  AfterselrangeChange事件小bug  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=174408)

--  作者:lgzhao
--  发布时间:2022/1/14 5:55:00
--  AfterselrangeChange事件小bug
Bug情形:

窗口临时表,类型sqlTable,在窗口afterload时通过sql command生成表结构。

此表的AfterselrangeChange事件代码如下:

Dim it As Winform.StripItem = e.Form.Strips("StatusBar").Items("Stat")

Dim t As Table = e.Table
it.Text = ""
it.Text = "Sum= " & t.Aggregate(AggregateEnum.Sum, t.TopRow,t.leftcol,t.BottomRow,t.rightcol)  & "  Count= " & t.Aggregate(AggregateEnum.count, t.TopRow,t.leftcol,t.BottomRow,t.rightcol) & "  Average= " & t.Aggregate(AggregateEnum.average, t.TopRow,t.leftcol,t.BottomRow,t.rightcol)

在窗口刚打开的时候,总是报错,说“不存在名为_identify的列“。这个问题已经很久很久了。我一直时用的绕开的办法。


--  作者:有点蓝
--  发布时间:2022/1/14 8:58:00
--  
我测试没有问题,请上传实例说明

 下载信息  [文件大小:   下载次数: ]
图片点击可在新窗口打开查看点击浏览该文件:管理项目31.zip