Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Shutdown Strategies - Return control to APP?
Message
 
 
To
13/07/1998 13:55:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00116865
Message ID:
00116872
Views:
12
Terry,

Return .F. from QueryUnload() if the form can't be closed, and don't release the form if it does return .f.

if ( _screen.Forms[i].QueryUnload() )
   _screen.Forms[i].Release()
else
   _screen.Forms[i].Activate()
endif

>Is there a good way to stop the shutdown process from the routine called by 'On Shutdown'? I would like to emulate the "Save Changes?" "Yes, No, Cancel" like the big boys do. I am using query unload to find the dirty buffers and that works ok, but I can't figure out the "cancel" part to return to the app. Thanx in advance.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform