Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping a process
Message
 
 
À
04/08/2010 08:32:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01029879
Message ID:
01475128
Vues:
34
>>>What is ReleaseType - when I tested in the on shutdown it was 0 and not 1
>>
>>From the form can you determine what caused the close?
>
>
>Do you try to close the foms in the ShutDown() ?

The shutdown procedure has this code at the end
if m.llOkToExit
	on shutdown
	try
		clear windows
		clear events
	catch
*		retry
	endtry
endif
The application can be closed from the toolbar or menu (menu calls the toolbar button's click) or from the shutdown procedure.

I'm thinking I set a property of the application object and then based on this property will ask or not ask the question about saving changes in that particular form. Does it sound like a good idea / solution or I should leave that application (and form) to its fate?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform