Wait for an event

  • Thread starter Thread starter casey
  • Start date Start date
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
 
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
 
Back
Top