Thanks.
I am not sure about one detail: Wouldn't it be safer to release the object reference earlier?
Hilmar.
>Hello Hilmar,
>
>I'd say Unload(), 2nd choice would be destroy(). Unload() is the last method to fire (besides DE events).
>
>The release() method does not always fire (if the user clicks on the 'X' to close, for example). QueryUnload() is the place to determine if the form should be allowed to close.
>
>>In a form, I want a property to refer to an object on the same form. I understand I have to do some cleaning-up, by setting this property to .NULL., for instance, before closing the form.
>>
>>My question is: what is the correct method to put this? Destroy? Release? QueryUnload?
>>
>>TIA, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)