Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Communications in 3-tier design
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00188770
Message ID:
00188940
Vues:
22
Hi Rob,

I've taken a slightly different approach to this that also works quite well. Basically, the business object has a protected cErrorMessage property and SetErrorMessage and GetErrorMessage methods. When a method fails, like save, the calling object calls the business object's GetErrorMessage method, which just returns the error message as a string. GetErrorMessage basically stores cErrorMessage to a variable, clears the property and returns the variable. SetErrorMessage accepts a string, which is added to the existing error message, which is nice in case multiple business rules were violated. It's actually a little more complicated than this because GetErrorMessage actually polls member objects for errors as well, but you get the idea.
Mike Feltman

F1 Technologies
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform