Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error handler within a dll
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00597613
Message ID:
00597641
Views:
15
You need an error method. It will get passed three parameters, nError, cMethod, nLine. You can use COMRETURNERROR to get the error information back to user.


>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?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform