Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return error info as xml?
Message
From
15/08/2001 15:16:54
 
 
To
15/08/2001 15:08:16
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00544196
Message ID:
00544266
Views:
19
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform