Foxtable(狐表)用户栏目专家坐堂 → 请教高手关于CurrentChanged的问题


  共有3413人关注过本帖平板打印复制链接

主题:请教高手关于CurrentChanged的问题

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


加好友 发短信
等级:小狐 帖子:319 积分:2494 威望:0 精华:0 注册:2012/5/19 22:40:00
请教高手关于CurrentChanged的问题  发帖心情 Post By:2014/10/26 23:17:00 [只看该作者]

想要在CurrentChanged中写一段代码,要实现根据不同行是否被审核而确定文件管理器中调整增加或删除的权限,可是下面的语句总是出错,请高手指教。语句和出错内容如下:

If Forms("监造周报窗口").Opened Then

Dim fm1 As WinForm.FileManager = e.Form.Controls("FileManager1")

Dim fm2 As WinForm.FileManager = e.Form.Controls("FileManager2")

Dim fm3 As WinForm.FileManager = e.Form.Controls("FileManager3")

Dim fm As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")

    If Tables("监造周报").Current("审核") IsNot Nothing  Then '如果周报已经审批       

        fm1.AddCommand.Visible = False

        fm2.AddCommand.Visible = False

        fm3.AddCommand.Visible = False

        fm.AddCommand.Visible = False

        fm1.DeleteCommand.Visible = False

        fm2.DeleteCommand.Visible = False

        fm3.DeleteCommand.Visible = False

        fm.DeleteCommand.Visible = False

        fm1.ClearCommand.Visible = False

        fm2.ClearCommand.Visible = False

        fm3.ClearCommand.Visible = False

        fm.ClearCommand.Visible = False

    Else

        fm1.AddCommand.Visible = True

        fm2.AddCommand.Visible = True

        fm3.AddCommand.Visible = True

        fm.AddCommand.Visible = True

        fm1.DeleteCommand.Visible = True

        fm2.DeleteCommand.Visible = True

        fm3.DeleteCommand.Visible = True

        fm.DeleteCommand.Visible = True

    End If

End If

 

.NET Framework 版本:2.0.50727.5485

Foxtable 版本:2014.10.16.1

错误所在事件:监造周报,CurrentChanged

详细错误信息:

未将对象引用设置到对象的实例。


 回到顶部