You need to clear the forms before.
llQuit = .T.
DO WHILE llQuit AND (Type("_Screen.ActiveForm") = "O")
IF _Screen.ActiveForm.QueryUnload()
_Screen.ActiveForm.Release()
ELSE
llQuit = .F.
ENDIF
ENDDO
IF llQuit
CLEAR EVENTS
ENDIF
HTH
>I used "CLEAR EVENTS" in my timer event. It seemed to work out fine.
>However, when there is a modal form on the screen., the "CLEAR EVENTS
>does not seem to work the way I expected. Is there any way to get around that
>without change the form to modeless?