J
Justin
I can attach my code if anyone wants to see it however I'll try to ask my
question with some mark up code first.
I'm having a problem terminating my process while using DoEvents. For
example:
Button.text = start
If button.text = start then
button.text = stop
msgbox "Boo!"
doevent
while 1=1
msgbox "BooHoo!"
loop
else if button.text = stop
button.text = start
msgbox "Quit Your Whining"
end if
Ok, click the button and you get:
Boo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
.......
Now click the stop button and you get
Quit Your Whining
BooHoo!
That doesn't make sense. The button already did NOT = Start. It was Stop
which is why it ran the stop code.
For some reason it goes through the DoEvents code one last time.
How can I properly stop that DoEvents thread prior to running my STOP code?
Thanks for any advise!
question with some mark up code first.
I'm having a problem terminating my process while using DoEvents. For
example:
Button.text = start
If button.text = start then
button.text = stop
msgbox "Boo!"
doevent
while 1=1
msgbox "BooHoo!"
loop
else if button.text = stop
button.text = start
msgbox "Quit Your Whining"
end if
Ok, click the button and you get:
Boo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
BooHoo!
.......
Now click the stop button and you get
Quit Your Whining
BooHoo!
That doesn't make sense. The button already did NOT = Start. It was Stop
which is why it ran the stop code.
For some reason it goes through the DoEvents code one last time.
How can I properly stop that DoEvents thread prior to running my STOP code?
Thanks for any advise!