Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timed events
Message
De
10/01/2005 17:02:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00975807
Message ID:
00975853
Vues:
19
>>Set the interval to 10000 and the timer event will fire every 10 seconds.
>>
>>>This sound inaccurate. Seems like it could wander using this method. That's why I figured if every 10 seconds I could look and see if my machine time (atomic time) was 05:59 I would play the wav. Your method leaves me at the mercy of the internal clock tick correct?
>
>So how do I keep it from firing every 10 seconds during 05:59 till 06:00?

The Timer Event will fire every 10 seconds, but you check at the very beginning whether it is time to do some action or not.

The other alternative is the one I mentioned previously: calculate the .Interval so that it will fire only once.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform