Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nested IIF()'s Versus ICASE()
Message
From
03/03/2008 14:16:57
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298206
Message ID:
01298224
Views:
28
>What's the differences between nested IIF()'s and ICASE(). From what I can see, there's not
>alot of difference syntactically. Are there any performance differences?

>Of course, the ICASE seems more readable than the IIF()'s.
not only that, it is faster. In "normal" code the difference is not great, but in thight loops and especially in SQL queries working on a couple of milion rows you strive for as much "logic" to put into the smallest amount of memory (cpu cache) and here ICase is much better as well AFAIR.

HTH

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform