Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do people still use ON SHUTDOWN
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00159427
Message ID:
00159515
Views:
20
In my toplevelform (osdi) queryunload method:

if this.releasetype = 1 && close box
if oapp.ineditmode or oapp.inaddmode
messagebox("Can not Exit RealTrac 5.0 while in Edit or Add mode", ,64,oApp.cAppName)
nodefault
else
hold_return = oapp.exitapp() && clean up routine
if !hold_return
nodefault
endif
endif
endif

this seems to be working for my close button on the titlebar.


>You need an ON SHUTDOWN handler to know when the user has clicked the Close button on the app titlebar.

>>Programming in VFP 5.0. Have not noticed a need for ON SHUTDOWN, but just ran across it in the help. I control the exiting from my app, I think. What does ON SHUTDOWN do for you?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform