Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class...class...CLAAAAAASS!
Message
From
13/03/2014 17:01:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/03/2014 10:21:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01596345
Message ID:
01596501
Views:
67
>Hi Tore.
>
>>>When the form containing the new controls tries to open, you get the Windows 'OLE not registered' error. What I'd like to do is trap that error, and then prompt the user to run the installer. That way the issue remains peculiar to that machine, not the user. How can I do that?
>>>Thanks.
>>>
>>>Luke
>>
>>
>>Try
>>   loX = CreateObject("myClass.ocx")
>>Catch
>>   loX = .null.
>>   Messagebox("Your message here")
>>Endtry
>
>That only works if the control is instantiated programmatically as opposed to be dropped on the form.

But then wrap the creation of the form (either by Do Form or by CreateObject)... form would error out anyway.
>
>Doug

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform