>Hello.
>If I using memory variable a receive same error...
>When I use loModem = CREATEOBJECT('MSCOMMLib.MSComm.1') it is works good...
>But I want create object on my class based on this activeX controls...
>My "oApp" object is Custom class. It is no container class. I want to store to the "oModem" property of this class the MSCOMM object for using in many forms in application without overloading control... Of course,I can to use this control in each forms and set properties for this in each form and copy code, but I want to have one object.
>Thank.
>Denis.
It seems that the error "Cannot add to this container" actually means that you cannot create an object on another object ("container") - a bit misleading. That's as far as I know on this subject (I'm getting stuck myself) - there should be some more knowledge out there...