>> I'm not sure why do you remove the object? We use similar methodology, in page Activate method we add a container if it's not there using NEWOBJECT method. But once added, this container remains added.
>
>Hi Naomi,
>
>The container class that I am adding changes, depending on a value that can be set when initializing a form OR selected from a combobox on screen. I remove the object before adding it again to clear the original object. I could add code to only remove and add the container if the class HAS changed - it would probably be more efficient that way.
I see. Are you sure the class is indeed removed? Sometimes there are extra tricks needed like setting the object visible to false before removing and setting it to NULL afterwards.
You definitely shold remove only if parameters changed.
If it's not broken, fix it until it is.
My Blog