以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  不存在名为“_identify”的列  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=165355)

--  作者:otterlike
--  发布时间:2021/5/14 23:53:00
--  不存在名为“_identify”的列
请老师帮忙看看问题在哪里?

在项目属性-全局表事件中加了如下代码,在表中新增列时就报错:不存在名为“_identify”的列,接着弹出
.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2021.5.12.1
错误所在事件:全局表事件,AfterSelRangeChange
详细错误信息:
未将对象引用设置到对象的实例。

最后要启动任务管理器来结束程序。

Dim t As Table = e.Table
StatusBar.Message3 = "平均值:" & t.Aggregate(AggregateEnum.Average,t.TopRow,t.LeftCol,t.BottomRow,t.RightCol) & "  合计:" & t.Aggregate(AggregateEnum.Sum,t.TopRow,t.LeftCol,t.BottomRow,t.RightCol) & "  计数:" & t.Aggregate(AggregateEnum.Count,t.TopRow,t.LeftCol,t.BottomRow,t.RightCol) & "  最大值:" & t.Aggregate(AggregateEnum.Max,t.TopRow,t.LeftCol,t.BottomRow,t.RightCol) & "  最小值:" & t.Aggregate(AggregateEnum.Min,t.TopRow,t.LeftCol,t.BottomRow,t.RightCol)

图片点击可在新窗口打开查看

图片点击可在新窗口打开查看
图片点击可在新窗口打开查看
[此贴子已经被作者于2021/5/14 23:57:18编辑过]

--  作者:有点蓝
--  发布时间:2021/5/15 9:05:00
--  
我测试没有问题,做个例子发上来测试一下