Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer and event
Message
De
05/03/1997 00:04:16
 
 
À
04/03/1997 23:42:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00022890
Message ID:
00022892
Vues:
46
>At the end of one of my event, I have oApp.oTimer.Enabled=.T.
>
>This will activate oApp.oTimer.Timer() event.
>
>The problem is that I need to make sure the event, which activates the timer, need to be finished before the oApp.oTimer.Timer() event occur.
>
>Right now, the oApp.oTimer.Timer() event is starting while the prior event is not released from memory.

The first timer event occurs after the first time slice. So, one solution is to set your timer interval big enough to be sure the other event is finished. You can reset the timer interval in the Timer event, first time it occurs.

Second solution: use a flag, if possible.

Also: Activate your timer as last action in calling event.

Vlad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform