Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catching errors
Message
 
 
To
18/05/2001 11:33:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00508764
Message ID:
00508775
Views:
10
>Hi all,
>when I try to do something wrong on purpose to generate an oledb or ado error, I'd like to be able to catch these errors and handle them in my own exeception handler written in foxpro.
>How can I do that?
>The same happens in my ASP top-tier... I get an error and the application hangs. I'd like to catch that error too and inform the user gallantly how to resolve the error.
>
>thanks in advance!!
>
>-- Erwin

Create an Error event in your COM server. In the Error event, populate the OLE error information structure using COMRETURNERROR(). You will see your nice text instead.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform