Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handler within a dll
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00597613
Message ID:
00597622
Vues:
14
>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?

Hi!

I think the correct syntax is <> instead of <>.

Good luck,
Dorin
MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform