Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroy object reference
Message
De
08/04/2002 10:44:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
08/04/2002 10:38:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00642179
Message ID:
00642195
Vues:
16
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform