Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DO CASE vs IF
Message
De
28/12/2000 12:50:32
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
28/12/2000 01:00:11
Kam Lee
SUNY-Health Science Center
Brooklyn, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00457199
Message ID:
00457420
Vues:
21
>My opinion is which ever one you use i.e. either CASE Statement or IF statement, you should put the option which has the highest chance to happen in the top and then the second highest chance option next and so on ... and the least in the last.
>This way you could achieve the best efficiency in your code in the long run.
>
>
>Kam.

Kam,

Absolutely right! Thanks for adding that!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform