Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 22nd, 2004, 03:45 AM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Force app to perform event

Hello,

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.

Thanks,

Adam
 
Old January 22nd, 2004, 01:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you be more specific? Which function are you talking about? Is it a method in an event call?
Marco
 
Old January 22nd, 2004, 04:21 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Yehuda
 
Old February 10th, 2004, 02:30 AM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, worked like a treat






Similar Threads
Thread Thread Starter Forum Replies Last Post
java.awt.event error in swing app. Mr. Monkey Java GUI 2 March 27th, 2007 09:48 AM
based upon parameter perform action warsha_14 Struts 4 August 5th, 2006 04:51 AM
Connection cannot be used to perform this operatio LibrarianMo Access ASP 1 February 24th, 2006 01:18 PM
Force an event to trigger YiannisF ASP.NET 1.0 and 1.1 Basics 2 June 2nd, 2004 08:52 AM





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