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:
00304444
Views:
20
>Ok, working with the guys yesterday, I almost solved my problem. I can now shut down my program from the Exit menu selection, but the X in the upper right corner still produces a dialogue box that says I "Cannot Exit Foxpro". Here's my code:
>
>
>ON SHUTDOWN DO shtdwn IN MAIN
>
>FUNCTION shtdwn
>CLEAR ALL && release all variables, tables, etc.
>CLOSE ALL && close all tables, forms, databases, etc.
>QUIT
>
>I put this in Code -> Programs -> main
>
>What am I missing?

CLEAR EVENTS

is what you are missing.
Previous
Reply
Map
View

Click here to load this message in the networking platform