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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only