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

Click here to load this message in the networking platform