以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  关于CurrentChanged事件  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=83128)

--  作者:sara
--  发布时间:2016/4/1 9:00:00
--  关于CurrentChanged事件
我想在关闭窗口时候关闭CurrentChanged事件可以吗?关闭了还需要打开吗?下次打开窗口时候?
--  作者:Hyphen
--  发布时间:2016/4/1 9:15:00
--  
如果CurrentChanged事件是在窗口中写在代码,关闭窗口自然就不会执行这个事件了,如果是在主表中的事件,可以用一个全局变量控制是否执行代码,如

if vars("可以执行") then
‘其它事件代码
end if