Thanks! It looks like your code actually uses all three of the ways I had thought of .... so, I guess I've got some digging to do.
>>A question about cleaning up leftover objects:
>>
>>I have a number of objects which themselves contain objects (in properties). What is the best way for these objects to clean up after themselves?
>>
This.oObject.Release()
>> Release This.oObject
>> This.oObject = .Null.
>>Are these all equivalent?
>>
>>Thanks
>
>
>TRY
> IF TYPE("myObject") = "O" and ! ISNULL(myObject)
> myObject.Release()
> ENDIF
>CATCH TO loError
> *--do logging
>ENDTRY
>TRY
> myObject = null
> RELEASE myObject
>CATCH TO loError
>ENDTRY
>
>
>But also read these:
>
>
http://www.west-wind.com/wconnect/weblog/ShowEntry.blog?id=692>
http://www.foxpert.com/docs/safeclasses.en.htm
Jim Nelson
Newbury Park, CA