Results 1 to 3 of 3

Thread: Timer Timing...

  1. #1

    Thread Starter
    Addicted Member charmedcharmer's Avatar
    Join Date
    Sep 2003
    Posts
    211

    Timer Timing...

    Hi guys,

    Ok, so I'm working with timers. I just need to confirm a few things. Right now I would like to ask what happens if the statements insider the Timer1_Timer() took more time to execute than the 'Interval' property of the timer.

    For example Timer1 has an Interval = 1000 (1 second), then the Timer1_Timer() Sub, since it queried from the database, took 2 seconds to execute. What happens to the execution of Timer1_Timer().

    Thank you for the help
    C++ Programming is overwhelming.

    Dont let it overwhelm you or you'll fall into the oblivion of its perfection

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Timer Timing...

    The timer code would continue to execute until it finished. Look in my signature for help with timers.

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Timer Timing...

    Randem is correct. Unless you do something silly like have a Doevents inside the timer, it will not trigger while executing code. Any timer events that should have fired are skipped.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

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