Information générale
Catégorie:
The Mere Mortals Framework
Kevin,
Now I can't get the container to release if it contains another BizObj, probably a dangling reference. Just for my information, why do we need to reset the UIEnabler.lActivated properties on an Add?
TIA
Rex
>Rex,
>
>>I found the problem. In the New button you call the cBizObjMaintBaseForm.New() in which you clear all the UIEnabler.lActivated properties in each page of the pageframe. In the cPageFrame.ClearUIEnablerlActivated method you clear the lActivated alright, but you don't check to see if the container has already been created.
>>
>>I replaced the old code in the cPageFrame.ClearUIEnablerlActivated method with:
>>
>>LOCAL loPage
>>
>>FOR EACH loPage in This.Pages
>>
>>IF TYPE("loPage.cntControls") = "O"
>>loPage.RemoveObject(loPage.cntControls.Name)
>>ENDIF
>>loPage.UIEnabler1.lActivated = .F.
>>ENDFOR
>
>Thanks for the heads up...I'll check it out.
>
>Regards,
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement