I need to refactor an app that uses a container control for platform-specific operations. Therefore, I’ve created a duplicate of the original ccLTFS1 container that was placed onto the parent window in the IDE, Deleted the ccLTFS1 Container instance, changed the original container to ccLTFSMain and named the new container ccLTFSWindows, and created a global property ccLTFS1 As ContainerControl.
At startup, I use the following code in the parent PagePanel’s Open event:
They are the same - it’s just the functional logic behind the UI that differs. I’ll look at that further since having to refer to ccLTFSW and ccLTFSM for every referenced call outside of the instance will make for quite a headache.
containercontrol → subclass → ccLTFS → subclass ccLTFSWindows ccLTFS → subclass ccLTFSMac
and put all the properties like tmCheckLTFSMountStatus and common methods in ccLTFS
and specific methods in ccLTFSWindows and ccLTFSMac
Even though you are assigning an object of that type to the variable. It is, in fact, declared as an object of type ContainerControl (or desktop equivalent). That declaration (not shown) is the reason you get this issue.