+ -
当前位置:首页 → 问答吧 → VB 怎么调用一个函数F1结束另外一个函数F2

VB 怎么调用一个函数F1结束另外一个函数F2

时间:2011-07-23

来源:互联网

RT
有个死办法,在F2里面没一个步骤都去办法,除了这个还有什么好办法吗,3Q

作者: MeBoss   发布时间: 2011-07-23

dim stopf2 as boolean

function f1()
  stopf2 = true
end function

function f2()
  stopf2 = false
  while true
  doevents
  if stopf2 then exit while
  wend
  stopf2 = false
end function

作者: caozhy   发布时间: 2011-07-23

引用 1 楼 caozhy 的回复:
dim stopf2 as boolean

function f1()
stopf2 = true
end function

function f2()
stopf2 = false
while true
doevents
if stopf2 then exit while
wend
stopf2 = false
end function


我需要点击后 立即结束函数的动作,假如在20行代码有判断,但是当只执行到10行代码的时候,那么就从第十行代码那里结束

作者: MeBoss   发布时间: 2011-07-23

http://tieba.baidu.com/p/1136190421

作者: zx083z   发布时间: 2011-07-23