Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exiting Program
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Exiting Program
Divers
Thread ID:
00291561
Message ID:
00291561
Vues:
68
If I have a form (lets say formA) that has a ShowWindow property set to In Top-Level Form and when I run my program the formA shows up under Visual FoxPro Main window, how can I close the visual foxpro main window at the same time I exit formA with my command button? Currently, when I exit FormA, my visual foxpro main window remains open until I hit X button. If I use As Top-Level Form for FormA I am having problems running my other forms (my program seem to terminate) So I need to keep formA as a In Top-Level form. Does anyone know how to exit visual foxpro main window at the same time I exit my FormA? Here is what my cmdexit button looks like on my formA

*cmdExit
capslock(.f.)
thisform.release()
clea event

my main.prg and myshutdown looks like following:

*&&main.prg
on shutdown do myshutdown
do form logon
read event
on shutdown


*&& myshutdown
clos all
clea all
capslock(.f.)
clear events
quit


Thank you
Nick Patel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform