General information
Category:
ActiveX controls in VFP
Title:
Form Instantiation Failure due to OLE--Cannot Trap Error
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only