以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  按钮编辑状态  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=122424)

--  作者:lycliu
--  发布时间:2018/7/25 11:22:00
--  按钮编辑状态
有A,B两个按钮同时存在,点击了A按钮之后,点击B按钮才会执行B按钮的事件,这个代码要怎么设置
--  作者:有点甜
--  发布时间:2018/7/25 11:25:00
--  

窗口afterLoad事件

 

vars("状态") = ""

 

a按钮click事件

 

vars("状态") = "A"

 

b按钮click事件

 

If vars("状态") <> "A" Then

    msgbox("先点击A")

Else

    \'其余代码

End If