>>>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...).