>Hi..All
>I develop application follow from Tastrade (Example from VFP) I have program..when my user exit from my application (click upper right coner of screen - cross mark) Application alert message error "Cannot exit from VFP" I want disable exit buttom (main menu - created from menu gen.) How can I solve?
>
>Thanks
>Narong
To control what happens when the user clicks the "x" in the upper right hand corner, use an ON SHUTDOWN routine. Usually, VFP cannot quit because there are outstanding object references and stuff. In your ON SHUTDOWN routine, put
some stuff like:
CLEAR EVENTS
RELEASE ALL
CLEAR ALL
and VFP should exit cleanly.
Erik Moore
Clientelligence