Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do nesting exceded
Message
De
15/07/2000 20:19:00
 
 
À
15/07/2000 18:29:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00392852
Message ID:
00392963
Vues:
9
>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform