Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Timers
Divers
Thread ID:
00087434
Message ID:
00087631
Vues:
26
>How do I calculate how long a timer has been going?

I am guessing here you are looking for a cumulative measure. Try something like this:

Create a custom property called TotalTime and initialize it to 0
In the Timer() Event - issue this code:

This.TotalTime = This.TotalTime + This.Interval

You will need to account for things like a nodefault in the Timer(). You will still want to track how long the Timer has been active. Also, you will want to place code in the Reset(). Something like: This.TotalTime = 0.

HTH,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform