请问:我的按钮在执行click事件时,当执行到某条件时想让它终止回到窗口,请教如何实现?

wyl_82 2004-12-22 10:38:24
在窗体Form1中的按钮程序中写:
if 条件 then
msgbox("我要跳到窗口")
xxxxxxxxxxxxxxxxxxxxxx
end if
请问在xxxxxxxxxxxx处程序应该怎么写,如何实现?
...全文
73 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyvvvv 2004-12-22
  • 打赏
  • 举报
回复
if 条件 then
msgbox("我要跳到窗口")
exit sub
xxxxxxxxxxxxxxxxxxxxxx
end if
laviewpbt 2004-12-22
  • 打赏
  • 举报
回复
对于Sub Exit Sub
对于Function Exit Function
ljhdi 2004-12-22
  • 打赏
  • 举报
回复
exit sub

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧