Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF nested
Message
 
À
21/08/2004 14:07:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00934989
Message ID:
00935294
Vues:
25
>Hi George,
>
>VFP9 has the new ICASE function for these cases:
>cColor=ICASE(VARTYPE(nVAL)='U','White',nVal=0,'Black',nVal<1,'Red','Green')
>Really cool, and somewhat readable also. At least we don't have to count the all the ( and ) anymore.

Tore,

Well, matching the parenthesis was pretty much taken care of in the IDE recently.< s >

I agree that ICASE() is cool, however, my point was that, like IIF() it can be misused, and thus, abused.

Would I like to see either removed? Nope, they're invaluable.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform