Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return error info as xml?
Message
De
15/08/2001 15:16:54
 
 
À
15/08/2001 15:08:16
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00544196
Message ID:
00544266
Vues:
14
>Actually you can use ComReturnError() to relay the XML error information back to a COM client. This function was added specifically for improved COM support on errors and is certainly appropriate in this situation.

Hmmm, I woudln't recommend that though. If some COM object did that in my apps, I'd have no idea what do with it. Its all up to the client, and thats why there's the standard error structure.

Though, being able to return TRAPPED (expected) errors safely from a COM object's method is not a bad idea, I do it often.

>Although the help files do not specify if there is a limit to the amount of info you can pass back through it.

I've seen wild things doing that. In VFP7 I got alot of C5 errors, in VFP6 things like "?" would stop working from the command window. Kindof wierd.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform