Wait for an event

C

casey

I have a subroutine that has 2 sections of code. The last line of the
first section displays a button. I need my program to wait until the
user clicks the button, then continue executing the rest of that
subroutine. (Because the code in the second section uses several local
variables, I cannot use the button's click event handler method).

Thanks in advance,
Casey
 
A

Armin Zingler

casey said:
I have a subroutine that has 2 sections of code. The last line of
the first section displays a button. I need my program to wait
until the user clicks the button, then continue executing the rest
of that subroutine. (Because the code in the second section uses
several local variables, I cannot use the button's click event
handler method).


You will have to use the click event handler. Make the local variables
available to the whole class. But why not show a Msgbox instead?



Armin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top