Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ON SHUTDOWN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Divers
Thread ID:
00304282
Message ID:
00304321
Vues:
25
Okay. My thoughts then are that the Exit isn't hitting the ON SHUTDOWN the same way the close box is. I'm assuming that your main program has a READ EVENTS command somewhere. From the VFP help file, in the READ EVENTS item:

"Issue CLEAR EVENTS to stop event processing. When CLEAR EVENTS is issued, program execution continues with the line immediately following READ EVENTS."

I'd try a sequence like this:

* Main module
ON SHUTDOWN DO ShtDwn

READ EVENTS
CLOSE ALL
CLEAR ALL
ON SHUTDOWN && this clears the previous setting (so you don't loop)
QUIT
* end of main module


FUNCTION ShtDwn
CLEAR EVENTS
ENDFUNC


>No, It simply says "Clear Events" without the quotes
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform