Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to display messagebox from
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00962154
Message ID:
00962174
Vues:
9
It depends on what you want to check. If you want to check the parameter values, then it should be in the method. If you want to check the return value, then in the calling code.

>I am having a difference of opinion on where to display a messagebox from.
>1. Within the method that test different passed variables.
>or
>2. From the code calling the method by returning a T/F or returning the message to display and checking to see if empty(msg) to determine if displayed
>
>I choose #2 mainly because I read somewhere that meesages should not be displayed from a method and it clearer coding.
>
>Thanks for any opinions, Chuck
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