Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to destroy class property
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01277535
Message ID:
01277610
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform