Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer and event
Message
De
05/03/1997 07:00:28
 
 
À
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:
00022918
Vues:
33
>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.
>
>What kind of mecanism can I use to detect that this prior event is released from memory before my oApp.oTimer.Timer() event starts?
>
>Is there a way to track a running event and see when it is finished?

Procedure Myobj.AnyEvent

Timer1.SetCanBeDone(.F.)
* Do whatever you have to do
Timer1.SetCanBeDone(.T.)

Return

Procedure Timer1.SetCanBeDone
LParameters llCanIt

This.CanBeDone = llCanIt

Return

Procedure Timer1.Timer

If This.CanBeDone
* Do whatever you have to do
EndIf

Return
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform