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:
01004510
Views:
19
Many thanks Borislav, works a dream !

>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform