Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AddObject() for an OCX?
Message
De
13/09/1999 15:09:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
How to AddObject() for an OCX?
Divers
Thread ID:
00264152
Message ID:
00264152
Vues:
49
Hi Anyone,
I'm trying to use an ActiveX .OCX that I've installed on my machine. I need to use it programmatically rather than visually. I create a form like:
oForm=CREATEOBJECT("form")

Next, I need to add the ActiveX object. It's called RegEditL.OCX. I know I need to use AddObject() and that the first two parameters should be oleMyObjectName and "olecontrol". And I know I need to pass the control’s Class Library Name as the third parameter of the AddObject method. But what is it? How do I determine what the Class Library Name is?
oForm=AddObject("oleRegEditL", "olecontrol", [WutzDis?])

When I've dropped the object on a form to look at it's Class Library property I see it contains [None]
TIA
=d=
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform