Put a DOEVENTS inside your loop. To prevent slowing down too much your application, execute the DOEVENTS once every 10 or 100 loops.
HTH
>This might not be a new question but I hope someone would help it out. My program doesn't respond to mouse actions while it is in a "Do while" loop. I put some code in the "click" event of a command button and I expected that I can stop the loop by changing the loop condition (via the click event of the command button). I never made the program respond to the mouse and trigger the event to change the loop condition. (I can trap the keyboard by a inkey() function though.)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only