Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to interrupt a module processing upon an event?

Status
Not open for further replies.

Werneck

Technical User
Aug 5, 2003
36
0
0
BR
How to interrupt a module processing upon an event?
Thank you
 
The only way I can think of doing it is to declare a public (global) variable (i.e. Public gbolEventFired as Boolean) and when the event fires, set the Public variable to True. Your module should be, periodically, checking to see if the public variable is True. When it is, then do what you want.
 
Why do you want to stop the code, for debugging? If so you can just set a watch or use the Stop command, which will pause the code and wait for a user response.

Regards,
gkprogrammer
 
The global variable alternative to flag the module fits my needs nicely.
Thank you for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top