Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping error inside a COM
Message
From
12/02/2002 16:48:39
 
 
To
12/02/2002 16:36:50
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00619153
Message ID:
00619168
Views:
14
Create an error method with three parameters nError, cMethod, nLine. You can log the error from there. Use COMRETURNERROR to return information to the client.


>I created a COM object using
>DEFINE CLAS _test AS CUSTOM OLEPUBLIC
>...........
>ENDDEFINE
>
>I am trying to catch errors while running the COM object.
>I tried to use ON ERROR DO This.getError inside the init procedure of the object, but I cannot compile it:
><>
>
>How can I catch errors inside my object?
>
>Thanks,
>Vali
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform