Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error trapping in a DLL
Message
De
05/07/2000 13:14:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Error trapping in a DLL
Divers
Thread ID:
00388395
Message ID:
00388395
Vues:
41
I have created a DLL that is being used in a Visual Basic application. When an error occurs that I was not specifically testing for, my DLL simply fails and returns a .F. I have tried to put an ON ERROR command the DLL.

If I say ON ERROR DO errhand WITH [parameters here], it is looking for "errhand" outside of the dll.

If I say ON ERROR =this.errhand([parameters here]), I get THIS can only be used within a method. (I have a PRIVATE FUNCTION called ERRHAND.

All I want to do is return a -99 along with logging the error stuff in a log file that I am keeping for all messages. What am I doing wrong?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform