>Thanks Ed,
>
>This may sound dumb, but what is the best way to close, end or release thisform.
>I sounds like I close one form, then give a new "Do Form" command. Am I correct ?
>And can you give me a sample of a close to a form, and the opening of another form ?
>
DO MENU.MPR && all Forms get started from the menu
READ EVENTS
CLOSE ALL
QUIT
From any MenuPoint that starts a form, whether modal or modeless, you could use DO FORM
whatever to start it up, and then when any given form ends, you can simply call thisform.Release to shut down the form. If you use a framework, it's likely that you call some sort of Form Manager to launch your forms and manage theim for you; hat would be handled by something called an application framework, which provides an enhanced set of service for managing the application environment for you.
When you want to shut down the application, issue a CLEAR EVENTS, which then executes the code following the READ EVENTS statement. You might want to do this from your menu's exit point, as well as a part of the ON SHUTDOWN process for your app so that clicking on the x in the upper right corner can also close the app. This is only one of many ways of managing your app; it's perhaps the base of most typical schemes.
Note - this is an extrememly minimalist example ofrunning an app using a menu to execute forms and other rocesses in your app. Some people prefer to have a main form that acts as a menu, especially where only one action or form may be in use at any given instant in time
>John