Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SHUT THAT PROGRAM DOWN.... Please!!
Message
 
 
À
20/12/2006 17:00:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01179349
Message ID:
01179385
Vues:
14
This message has been marked as a message which has helped to the initial question of the thread.
>You simply call QUIT -- it will end the program. But you can get the dreaded "Cannot Quit VFP" message. This can be caused by having a MODAL form open -- so to get around this, go through all the open forms and close them (call the Release method). Example:
>
>
>IF _Screen.FormCount > 0
>	lnFormCount = _Screen.FormCount
>	DO WHILE lnFormCount > 0
>		IF !INLIST(UPPER(_Screen.Forms(lnFormCount).Name),"MAINTOOLBAR","CHECKINGTOOLBAR","SAVINGSTOOLBAR","CREDITTOOLBAR","LOANTOOLBAR","QUICKBAR")
>			_Screen.Forms(lnFormCount).Release()
>		ENDIF
>		lnFormCount = lnFormCount - 1
>		IF lnFormCount > _Screen.FormCount
>			lnFormCount = _Screen.FormCount
>		ENDIF
>	ENDDO
>ENDIF
>
An additional reference How can I release all open forms FAQ #7975
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