Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON SHUTDOWN
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Miscellaneous
Thread ID:
00304282
Message ID:
00304321
Views:
24
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform