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