Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to display messagebox from
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Where to display messagebox from
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00962154
Message ID:
00962154
Views:
44
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
Extreme Programming = Plan -> Design -> Code -> Test
Next
Reply
Map
View

Click here to load this message in the networking platform