Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: IIF()
Divers
Thread ID:
00095089
Message ID:
00095147
Vues:
24
>Hello,
> Is an IIF() faster than an If-Else-Endif statement?

I remember reading that the IIF is faster than the IF Else Endif, but the speed increase may not out way the readability of the code. I dont have too much problems with the one level IIF, but when nesting is done, you should increase your documentation of that code proportionally. Try debugging IIF(MONTH(DATE())<=3,2,IIF(MONTH(DATE())<=6,3,IIF(MONTH(DATE())<=9,4,1)))
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform