Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot Quit Visual Foxpro
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00201951
Message ID:
00202156
Vues:
17
>I put clear event in my main.prg (startup) before read events
>
>&& main.prg
>do form frmbudget
>on shutdown clear
>read event
>
>and I also put ON SHUTDOWN CLEAR EVENT in the cmdQuit button on my form
>
>&& cmdQuit
>on shutdown clear event
>thisform.release()
>
>and my Microsoft visual foxpro window still stays open. Is there anyway to terminate the whole program through cmdQuit or to elimate the foxpro window in the background upon which my application stays on. It seems there are 2 foxpro windows present, my application window with forms, and the visual foxpro window which cannot terminate. Maybe I am just putting the commands in wrong place. Thanks for your help
>
>nick

Hi Nick,

There is no need to issue ON SHUTDOWN twice, and ON SHUTDOWN CLEAR actually does nothing related to quitting application.
One of the simple ways of quitting your app by pressing the button on the form,
or X button on the VFP window:

Add MYSHUTDOWN.PRG to your project

** MYSHUTDOWN.PRG**
close all
clear all
clear events
quit
*******

* Main.prg
on shutdown do myShutdown
do form frmbudget
read events
********

* frmBudget.ExitButton.Click()
clear events
thisform.release()
*********
HTH,
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform