Look up the ON SHUTDOWN command in the help file.
>I have finally finished an inventory database and in my menu the compiled .exe will not close when the X button in top right is pressed the message is Cannot quit Visual FoxPro
>is there an easy way property or screen I shoul;d be using in the main.prg after the menu command and before read or ???????
>
>Thanks in advance.
>
>Fred W.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer