>Hello all -
>
>I'm looking for suggestions on how to release class properties that hold object references or for that matter any value. I have tried different approaches varying from -- RELEASE THIS.bogusProp --, to attempting to set the property to a different value --THIS.bogusProp = .NULL.-- I receive error on the aforementioned statements, and calling the object's destroy/release/etc.. method that the property holds a reference to doesn't work, because obviously the object won't release while there is a reference to it. (that was a mouthful =P)
>Thanks in advance for any suggestions
>
>sc
Sean, you cannot RELEASE the object property.
This.myObjectProperty = .NULL. and then releasing the object it was referring to is enough.
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison