>>Right. You would create it as a custom property. Form|Add Property. I'd add it to my form baseclass.
>>
>>If you go this route, please do make sure you set the property to .NULL. in the destroy of the form. If you don't, when you close the form, it won't really release because there will be an orphaned reference to the object in .oLastActive.
>
>Nancy,
>
>PMFJI, but does that mean that any property that holds an object reference needs to be set to NULL in the destroy? That might explain some shutting down issues I've had lately...
Any property that you assign an object to during runtime. Yes. You don't have to do this for ADDOBJECT, for example. The following is my standard class template:
DEFINE CLASS MyForm AS FORM
MyObjectRef = .NULL.
PROCEDURE INIT( toPassedObject)
THIS.MyObjectRef = toPassedObject
ENDPROC
PROCEDURE DESTROY()
WITH THIS
STORE .NULL. TO .MyObjectRef
END WITH
ENDPROC
ENDDEFINE