Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer duration
Message
De
09/06/2008 12:48:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01322323
Message ID:
01322594
Vues:
15
>>Is possible to cause a timer object of the form to expire after a period of time running, for example: 2 minutes ?
>
>You can turn it off by setting Enabled=.F. property.

To determine the 2 minute limit, you could add a second timer object (with its INTERVAL value set to 2 * 60 * 1000) which would disable the first TIMER and itself when its TIMER() event fired.

Or you could add a property to your FORM with a DATETIME() variable type.
Populate the new property on the first firing of the TIMER() event.
Compare the value in that property against the current DATETIME() value on all subsequent firings of the TIMER() even, and when 2 minutes have elapsed, disable itself.

Hope this helps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform