Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer interval limit
Message
 
 
À
28/04/2005 15:43:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01008851
Message ID:
01009439
Vues:
12
Ramil,

Exactly what do you mean by a countdown timer?

If it's what I'd call a countdown timer, it'd be implimented with a custom property that was a datetime value for when the countdown was scheduled to end, and the Timer.Interval would be set to a value of twice as fast as the acceptable error in time of hitting the countdown event. ie if a 10 second accuracy was ok the timer would be set for 5000 milliseconds.
* oTimer.Timer()
if ( datetime() >= this.tCountdown )
   this.Enabled = .f.
   this.LaunchTheRocket() && the countdown is over
else
   this.UpdateCountdownClock() && refreshes some sort of countdown display
endif
I don't see why you need more than 2 billion milliseconds.

>>Why do you need a timer that won't fire for almost 25 days after it started?
>>
>>>I am trying to do a timer countdown and did not know that the Timer.Interval has a limit value of 2,147,483,647 milliseconds. Is this limit noted in the Help file at all?
>
>We're implementing a countdown timer, not an interval timer.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform