Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole error code 0x, Trappable?
Message
From
15/04/2006 16:28:23
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01113807
Message ID:
01113894
Views:
17
>>> You need to find out the registry key that gets created when the control is registered and check for it.
>
>I don't think I was very clear. I still want to display the form, it does more than just the OLE control. My problem is how to avoid the error message for the OLE control when displaying for form.
>
>One way would be to remove the OLE control and add it to the form when it is valid. I was hoping for a way to keep the OLE control on the form but be able to bypass the error message. That I can't seem to do.

You will have to add the active-x control at run-time and then position (remember to set .visible=.T. for the control) if if is available on the machine. You can check the registry for the entry to determine if it is available. You can also use my previous post suggestion on trapping the error. You cannot add at design time since the form is trying to load the control and you do not have a way to trap and prevent the load attempt.
Previous
Reply
Map
View

Click here to load this message in the networking platform