>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