I think I was misunderstood, though. I am not talking about usage in SELECTs - I would to it with nested IIfs. I have mentioned the DO CASE in original message's context, which was "ErrDesc = ICASE( .....", not a SELECT command.
I was talking about the equivalent: IIF() is the one-liner equivalent of IF, ICase is the one-liner equivalent of DO CASE. And I'm outta here ;) ----- Original Message ----- From: "Paul Newton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2008 12:05 AM Subject: Re: Send text file to default printer > 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. >> >> > > > [excessive quoting removed by server] _______________________________________________ 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.

