>Hi everyone, I'm running an executable(standalone) of my app and whenever I click on the 'X' on the upper right corner to exit, I get the infamous "Cannot quit Visual Foxpro" how can this be avoided and just exit the program without going through the menu?
>
>Thanks a lot.
Gilberto,
Chcek out the ON SHUTDOWN command, this will give you an opportunity to respond to the users request to exit and clear events and anything else you need to do to shut down cleanly.