Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exit of an application
Message
 
 
À
25/07/2006 18:57:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MySQL
Divers
Thread ID:
01139982
Message ID:
01139993
Vues:
22
>>hi
>>i got a problem, i created a .exe program with a menu and a main program and i works
>>but the problem is that when i want to quit i get a message box that say
>>"cannot quit visual foxpro" and it never quit.
>
>I think you should check the ON SHUTDOWN command. Typically, this would be called from the "File | Exit" menu, but it will also be called when the user tries to shut the main VFP window. The procedure called will typically:
>
>
  • Finish a READ EVENTS loop (please check this command, if you don't know it - this should also be part of your application), with the corresponding CLEAR EVENTS command.
    >
  • CANCEL, to return to the main VFP window. If CANCEL is called from a runtime version, it will quit alltogether.
    >
    >Saludos,
    >
    >Hilmar.

    In addition, if you have any arrays lingering you'll want to clear their contents before shutdown.
    Wine is sunlight, held together by water - Galileo Galilei
    Un jour sans vin est comme un jour sans soleil - Louis Pasteur
    Water separates the people of the world; wine unites them - anonymous
    Wine is the most civilized thing in the world - Ernest Hemingway
    Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform