Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form won't stay open
Message
From
19/05/2009 19:02:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01400297
Message ID:
01400844
Views:
64
This message has been marked as a message which has helped to the initial question of the thread.
>>>Stefan,
>>>
>>>Thank you very much for the solution!
>>
>>My pleasure. Although I just saw a bug in the previous example: as you may already have seen, both sample forms do not handle getting closed via upper-right X button, for instance by doing a "Clear Events" in Destroy()
>>
>>
>>Regards
>>-Stefan
>>
>
>Yes, I noticed this and I was going to put the CLEAR EVENTS in the QUERY UNLOAD method. Thank you.

Keep in mind that .QueryUnload() fires only on close box. So if you have a close commandbutton, it won't. Destroy() is a better candidate - it is sure to fire, no matter how you want to close the form. Or, if you already have cleanup code there, .Unload() - fires the last on the way out (IIRC - if .load() is first...).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform