Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 22nd, 2004, 03:45 AM
Authorized User
 
Join Date: Dec 2003
Location: JHB, , South Africa.
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
Reply With Quote
  #2 (permalink)  
Old January 22nd, 2004, 01:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Alameda, ca, USA.
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
Reply With Quote
  #3 (permalink)  
Old January 22nd, 2004, 04:21 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old February 10th, 2004, 02:30 AM
Authorized User
 
Join Date: Dec 2003
Location: JHB, , South Africa.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, worked like a treat

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:23 PM.


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