>>>If I set the Timer.Interval property to 2 hours, I expect the Timer() event to run after two hours - without me having to do additional checks or coding. Under what circumstances would that fail?
>>>
>>>Hilmar.
>>
>>When the time expires while some OTHER (non-VFP) process is running.
>
>So, if I understand correctly, in my example the Timer will wait ANOTHER 2 hours before it fires again! I didn't know this problem existed (all Timers I have used so far were for much shorter intervals). So, that is the reason many programmers prefer to check more frequently, right?
>
>Hilmar.
No, in the case that the interval *has* expired (maybe 10 minutes ago, maybe 3 hours ago) once the app. REGAINS control, it will fire. If it was 3 hours ago and you have 2hours set, then you will get 2 immediate fires.
This is true regardless of the interval. With a very short interval you will get as many fires as have occurred too, all at once, upon the app. regaining control.
Previous
Next
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