>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