htrada Posted June 30, 2004 Posted June 30, 2004 Hi, I have a program wich at some points checks whether a flag is true or false like this. While barriendo = True 'espero a que termine de barrer Application.DoEvents() End While ......rest of the code here...... when "barriendo" si true I go on executing the rest of the code. I´ve put the doevents there to let my app run while waiting for barriendo to turn true. This flag is modified at some other point in my app. The problem is that my programa stucks in this while loop and never lets the other part of the app (where I put barriendo =false) execute. Can anybody help me??? Bye Hernan Quote
Administrators PlausiblyDamp Posted July 1, 2004 Administrators Posted July 1, 2004 Application.DoEvents will allow your application to process it's windows messages (things like repainting the windows, handle mouse movement etc). However it will not allow your application to do 2 things simultaniously (sp?), if you require multiple concurrent bits of code to be running you will need to investigate threading. If you post some code / give a bit more detail about your problem then there may be an alternate solution. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.