Foxtable(狐表)用户栏目专家坐堂 → 多选框的问题


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

主题:多选框的问题

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


加好友 发短信
等级:童狐 帖子:238 积分:1986 威望:0 精华:0 注册:2015/2/16 13:29:00
多选框的问题  发帖心情 Post By:2015/11/10 16:03:00 [只看该作者]

.NET Framework 版本:2.0.50727.3655
Foxtable 版本:2015.11.2.1
错误所在事件:窗口,自检记录信息,CheckBox9,CheckedChanged
详细错误信息:
System.NullReferenceException: Object reference not set to an instance of an object.
   at UserCode.A2aPFSSzWOdp9QrlM(ControlEventArgs e)

 

系统报错如上面。程序中CheckBox9绑定了玻璃门结论,CheckedChanged中写入了程序:If e.Sender.Checked=True Then
     Tables("电梯信息表") .Current.DataRow("玻璃门")="符合"
Else
   Tables("电梯信息表") .Current.DataRow("玻璃门")="/"
End If

操作了不同的字段,是不是出现了冲突,谢谢!另外几个多选框同样具有这个问题,系统同样报错。


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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/11/10 16:05:00 [只看该作者]

If  Tables("电梯信息表") .Current Is Nothing Then
    msgbox("表没有数据")
Else
    If e.Sender.Checked=True Then
        Tables("电梯信息表") .Current.DataRow("玻璃门")="符合"
    Else
        Tables("电梯信息表") .Current.DataRow("玻璃门")="/"
    End If
End If

 回到顶部