Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error handler within a dll
I'm creating a dll for looping through all the tables in a certain directory and performing some maintanence operations. Sometimes errors occur that I need to process. I tried the following:
DEFINE CLASS myClass
PROCEDURE MyErrorHandler
RETURN
ENDPROC
PROCEDURE MyMethod
ON ERROR DO THIS.MyErrorHandler
*-- statements
RETURN
ENDPROC
ENDDEFINE
but the enviroment says it 'cant find this.myerrorhandler.prg'. What would be the correct syntax for calling an error handler here?
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