If you want to quit VFP when the form is closed, put a CLEAR EVENTS in the QueryUnload method of the form.
>Now my pgm runs fine only one problem it is not closing properly. i have a pgm file executing my form and then it doesnt gives me a message cannot close foxpro
------------------------------------------------
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