Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Instantiation Failure due to OLE--Cannot Trap Error
Message
De
03/05/1999 12:20:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Form Instantiation Failure due to OLE--Cannot Trap Error
Divers
Thread ID:
00214590
Message ID:
00214590
Vues:
54
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
Fil
Voir

Click here to load this message in the networking platform