Alan Blass wrote:Hi! How do I check if a component exists in a container and replace it if it exists.
If you have a requirement to know whether a container actually contains a particular component, then
you should write your application to keep track of that information. For example, when you add the component to the container, set some boolean flag to true. And when you remove it from the container, set that flag to false.