I have a problem removing objects (class container) from a pageFrame that is dynamic depending on a selection made on the page 1.
For example, when I select the page 2, in its activate, it does :
THIS.ADDOBJECT('oTab',lsObjName)
and in the deActivate of this page, it does :
IF TYPE("THIS.oTab") = "O" .AND. !ISNULL(.oTab) .oTab.DeActivateClass() .REMOVEOBJECT("oTab")
ENDIF
If focus is on an object, the remove command doesn't work.
I have tried to set focus on page 2 before the deActivate event and that doesn't work either.
Can anybody help me...
Thanks!