Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error handling in MTS
Message
De
14/01/1999 12:31:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00175939
Message ID:
00176053
Vues:
31
>>I've been looking at lots of example VB components for MTS. All have error handling that causes the error message to bubble up to the calling object. How do I do this in a VFP component?
>
>I've also been looking at VB and MTS and have started thinking about how VFP would be implemented in the same way. As far as "bubbling up" error messages to the calling object, only way I see it might work is to:
>1) Pass-back or RETURN some value/expression that can be interpreted by the calling object.
>2) Set a value to a property in the calling object that the calling object can check and act upon.
>I don't know if either way is possible or feasible since I haven't worked with it enough.

I've been reading further on this. MTS does not bubble up the error like DCOM does. MTS returns a generic error. To get the specific error, you need to return it in your object or provide someway of getting it. I'm not sure that setting a property is the best way. However, just as with any VFP application, the error should be logged someplace.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform