>i have the following code to remove a container object when not needed anymore:
>
>IF PEMSTATUS(THISFORM, [cntEmployer], 5)
> thisform.cntEmployer.VISIBLE=.f.
> thisform.RemoveObject([cntEmployer])
>ENDIF
>
>
>no error but the object deas not get removed.
>any thoughts?
If it's defined as a member object in the parent class, you can't really remove it. This works only for the objects you added at the current level - either in the form/class itself (not the parent class), or via .addObject() or .newObject().