If you put a CANCEL after READ EVENTS you will be running a CANCEL after CLEAR EVENTS ;-)
>Hi,
> I tried 2 ways to do so, but not success....
>1. RELEASE frmMain (because I will CLEAR EVENT in frmMain.DESTROY )
>2. CLEAR EVENT in frmLogin or whereever it called
>
>result: The application not terminated totally, command window not appearing after CLEAR EVENT when running in VFP. I need to issue CANCEL programmatically OR manually.... Any ways to terminate it without CANCEL command?
>
>Thank you
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05