Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hate Nested IFs? Consider this...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01086217
Message ID:
01086258
Vues:
11
Tom,

>Everyone likes to do things for one reason or another. I agree with your approach for readability. It would seem that your code would also be faster as you are executing one line of code as opposed to having to fall through CASE or IF statements.

The only downside to the one liner structure is you don't have those ELSE blocks available. It also depends on VFP early out optimization to prevent calls to the later clauses. Overall though it's a lot more readable to me (and that's all that matters *g*)

>P.S. I am a speed freak when it comes to code and data! :)

Me too.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform