Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to destroy class property
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01277535
Message ID:
01277610
Vues:
17
>I have a business class that has a property DA_OBJECT referencing data access class. The DA_OBJECT is instantiated in the INIT method of the business class. I need to destroy the DA_OBJECT when the business class is destroyed. Since my business class is based on the CUSTOM class I am thinking to add the following in the Destroy method:
>
>
>this.DA_OBJECT = .NULL.
>dodefault()
>
>
>Is the above correct approach?
>
>Thank you in advance.
>
>UPDATE: I am actually using VFP 9 SP1 (not SP2).

Hi Dmitry,

You may want to check http://www.foxpert.com/docs/safeclasses.en.htm
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform