Results 1 to 2 of 2

Thread: Timer for set minutes or hours ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2002
    Location
    Kitchener, Ontario
    Posts
    22

    Angry Timer for set minutes or hours ?

    Hello...

    I have placed a timer control on my forum and would like to set the interval (or loop) to go by a user defined interval. The program is going to watch for files in a particular directory and Iwould like the user to control how often it checks. It appears that you can only set the timer interval to 65000 milli-secs.

    Can anyone help with increasing that ??? Can you ?

    Thanks for any help, it is appreciated.

    Rob

  2. #2
    New Member
    Join Date
    Nov 2002
    Posts
    9
    The way I got around that was to set a counter inside the timer procedure that incremented each time the routine was called used this value to calculate how many minutes had passed.

    When the desired number of seconds had been reached I reset the counter to 0.....

    i.e. timer interval set to 1000 (1 sec) so dividing the counter by 1000 told me how many seconds had passed and used this figure to trigger my procedure....

    Hope this helps...

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