Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to AddObject() for an OCX?
Message
From
13/09/1999 15:09:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
How to AddObject() for an OCX?
Miscellaneous
Thread ID:
00264152
Message ID:
00264152
Views:
48
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=
Next
Reply
Map
View

Click here to load this message in the networking platform