On Jan 3, 2008 10:36 PM, Paul Newton <[EMAIL PROTECTED]> wrote: > > Paul Hill wrote: > > On Jan 3, 2008 10:05 PM, Paul Newton <[EMAIL PROTECTED]> wrote: > > > >> 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" > >> > > > > I agree but the point I was making is that I have often seen other > > peoples spaghetti nested IIF() code like this: > > > > cAnimal = IIF(field1=1,"cat", IIF(field1=2,"dog", IIF(field1=3,"mouse", > > "?"))) > > > > And that's a simple example. > > > > > Which is PRECISELY the value if ICASE ...
But just as unreadable and un-debuggable! -- Paul _______________________________________________ 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.

