Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement