Do you already have an ON SHUTDOWN procedure? If not, start there. In that procedure, you can close down any forms that are open. If you're using a form manager in your app, close them through the form manager. Otherwise, you can loop through the _Screen.Forms collection to close all the forms. I don't know what else you've got going on in your app at any given time, so it's hard to say exactly what you need to do. If you've instantiated an application object, you should also release that.
>it´s no so simple to quit an aplicattion in certains status, some objects created, a lot of forms....
>
>Sometimes is important to can quit directly.
>
>Do you know a simple way to quit from the exe/app directly??
>
>thanks...