Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit Program
Message
From
01/06/1999 23:34:41
 
 
To
01/06/1999 23:19:52
Narong Tohku
Knownet Co.,Ltd.
Bangkok, Thailand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00225217
Message ID:
00225224
Views:
15
>Hi..All
>I develop application follow from Tastrade (Example from VFP) I have program..when my user exit from my application (click upper right coner of screen - cross mark) Application alert message error "Cannot exit from VFP" I want disable exit buttom (main menu - created from menu gen.) How can I solve?
>
>Thanks
>Narong

To control what happens when the user clicks the "x" in the upper right hand corner, use an ON SHUTDOWN routine. Usually, VFP cannot quit because there are outstanding object references and stuff. In your ON SHUTDOWN routine, put

some stuff like:

CLEAR EVENTS
RELEASE ALL
CLEAR ALL

and VFP should exit cleanly.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform