Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bug on Exit
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Bug on Exit
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01090290
Message ID:
01090290
Vues:
70
Hi everybody,

Try to reproduce the following problem: open several forms, type something and then go to the menu and try to close the application using Exit. On the question: Do you want to save changes? Answer Cancel. Then go to any other menu item. You'll get the error goAPP is not the object and the only way out is to kill the application.

Here is a quick and simple fix:
local lnYesNo
store 0 to lnYesNo

if vartype(m.goApp) = "O" && if an application object available?
	if m.goApp.lDebugMode and !m.goApp.lDebugDisableAppQuit
		lnYesNo = MsgSvc("quitapp")
		if m.lnYesNo = IDYES
			goApp.onShutdown()
		else
			return
		endif
	else
		goApp.onShutdown()
	endif
else
	clear all
endif
Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform