Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release Property
Message
 
 
À
21/12/1999 11:18:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00306719
Message ID:
00306734
Vues:
29
>Hi,
> I have a property of myclass that store the reference of an object. How to RELEASE the property? I try myclass.oObjRef = .NULL.
>does it RELEASE the object?
>
>Thank you

oObject.cProperty = .null. should work. Yes, this realease the object as well. You might want to explicitly release the object first then clear the value of the property.

oObjectReferredTo.Release && if it has a release method
oObject.cProperty = .null.

or

Release oObectReferredTo
oObject.cProperty = .null.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform