Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thisform
Message
 
À
30/10/2003 11:21:42
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00844515
Message ID:
00844561
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform