p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Beginning VB 6 (http://p2p.wrox.com/forumdisplay.php?f=75)
-   -   Force app to perform event (http://p2p.wrox.com/showthread.php?t=8437)

adman January 22nd, 2004 03:45 AM

Force app to perform event

Does anyone have any code that will force an application to stop whilst it executes a particular event.

If I step through the application it performs the function perfectly, but when the app is running as normal it seems to skip over the particular function that I need it to perform.



marcostraf January 22nd, 2004 01:47 PM

Can you be more specific? Which function are you talking about? Is it a method in an event call?

Yehuda January 22nd, 2004 04:21 PM

Create a Global variable set it to false. Call the event and then loop until the Global variable is true (set it to true at the end of the event; remember to put in DoEvents). Once the variable is true set it to false (to reset the program for the next event) and exit the loop.


adman February 10th, 2004 02:30 AM

Thanks, worked like a treat

All times are GMT -4. The time now is 05:30 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.