>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
ENDTRY
TRY
myObject = null
RELEASE myObject
CATCH TO loError
ENDTRY
But also read these:
http://www.west-wind.com/wconnect/weblog/ShowEntry.blog?id=692http://www.foxpert.com/docs/safeclasses.en.htm
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"