Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On shutdown in a top level form
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01004502
Message ID:
01004504
Views:
16
>I am working on an application that uses a top level form a the main form. I thought I could issue an on shutdown to control how the application closes. However the command doesnt seem to work. Is there anyway I control how the application closes when a user clicks on the close box in a top level form.
>
>Many thanks in advance for any help on this topic

Put in QueryUnload Event of the form:
LOCAL cOnShut
cOnShut = ON("SHUTDOWN")

IF .NOT. &cOnShut && The Function/Procedure you use for ON SHUTDOWN must returns .t. or .f. to check if all is OK during SHUTDOWN
   NODEFAULT
   RETURN .f.
ENDIF
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform