Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What command(s) do I need?
Message
 
To
17/08/1999 09:54:26
Loy Agujo
BC Rapid Transit Co Ltd
Burnaby, British Columbia, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00254482
Message ID:
00254506
Views:
27
>But wait...
>It works in clicking "X" in the form but not when Ctrl+F4 is pressed...
>
>Thanks

Hi,

If, in addition to NODEFAULT, you return .F. from QueryUnload, the form cannot be closed by Ctrl+F4, clicking on the close button, or the ControlBox menu. Generally, the code looks something like:
IF NOT SomeLogicalCondition && or IF SomeLogicalCondition
  NODEFAULT
  RETURN .F.
ENDIF
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform