Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Instantiation Failure due to OLE--Cannot Trap Error
Message
From
03/05/1999 12:20:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Form Instantiation Failure due to OLE--Cannot Trap Error
Miscellaneous
Thread ID:
00214590
Message ID:
00214590
Views:
55
In my framework, when a form fails to instantiate correctly, the error handler traps the failure and handles it gracefully so the user does not see a message from VFP. (The error handler uses a global ON ERROR statement.)

However, when the form fails to instantiate because an ActiveX control is not registered (error 1426), the error handler does not seem to detect it--instead, VFP issues a Find dialog (something like: "please find the OCX file").

Is there any way to trap this error so my program gets control before VFP can issue the Find dialog? (I tried instantiation with both CreateObject and NewObject.)

Thanks, Chaim
Next
Reply
Map
View

Click here to load this message in the networking platform