>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