Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PROBLEM with class based on OLECONTROL
Message
 
À
19/04/1999 08:56:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00209596
Message ID:
00209622
Vues:
25
>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...
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform