Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF nested
Message
 
To
21/08/2004 14:07:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00934989
Message ID:
00935294
Views:
27
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform