Paul, Grigore

You can use ICASE in index expressions and in SELECT (SQL) statements like

SELECT ICASE(blah, blah, blah) AS MyResult .... FROM ... INTO ...

This is the WHOLE point if ICASE and IIF ...

If you wanted to use DO CASE in this situation you would need a UDF.  It 
is not simply a matter of "every byte/cycle counting"

Paul Newton

Paul Hill wrote:
> On Jan 3, 2008 8:58 PM, Paul Newton <[EMAIL PROTECTED]> wrote:
>   
>> Gigore
>>
>> With ICASE you can do something like this (in a single line/statement)
>>
>> x = ICASE(condition1, result1,condition2, result2, some_other_result)
>>
>> That's what it is designed for - and DO CASE does not do this (in a
>> single line/statement)
>>     
>
> Personally I would use a CASE statement as it's far more readable.  I
> suppose it could be handy in an index expression.
> It's not like we're in the old days where every byte/cycle counts.
>
>   



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to