PDA

Click to See Complete Forum and Search --> : Loop interruption


DRR
Jan 16th, 2000, 09:26 AM
I have a large do while loop running a marquee, how can I detect if my cancel
button has been pressed during the loop?
Key detection?
Form button or keyboard key.
Tried API no luck?
Thanks for helping!

MartinLiss
Jan 16th, 2000, 09:46 AM
Just put a DoEvents statement inside the loop. That way whatever code you have in cancel buttons Click event will get a chance to execute.

------------------
Marty

DRR
Jan 18th, 2000, 04:17 AM
Marty,
Thank you for the help!