Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform
Message
 
To
30/10/2003 11:21:42
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00844515
Message ID:
00844561
Views:
19
>George
> That way is much easier to read, that's for sure. I will try to switch. At work I use VB6 and VB.Net. But I am going to try to remember to do it that way. It is much easier to read. But anything over 2 I always use Select Case anyway. Select Case executes faster than an If and is easy to read. Thanks for the tip.

You're welcome.

One thing that can be of benefit with VFP is that the DO CASE...ENDCASE structure allows for different expressions to be evaluated. While, in general this isn't good design, there are some cases where it can be used to solve some thorny problems that would take much more code than otherwise would be necessary. When using this feature, I always try to check and make sure that I can justify its use, and, of course, document it accordingly.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform