Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Catching errors
Message
 
 
À
18/05/2001 11:33:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00508764
Message ID:
00508775
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform