Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to AddObject() for an OCX?
Message
 
 
À
13/09/1999 15:09:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00264152
Message ID:
00264290
Vues:
16
Darren,

Use what shows up in the OLEClass property when you drop one of them on a form.

>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform