Results 1 to 3 of 3

Thread: Loop interruption

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    2

    Post

    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!

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    2

    Post

    Marty,
    Thank you for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width