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)

The nub of the matter is the "I" ....

Paul


Grigore Dolghin wrote:
> I am sorry, I have to disagree here. While nested IIfs do the same thing, 
> ICase allows the programmer to select one value from a list of multiple 
> values, based on evaluation of an expression, which is what DO CASE does.
>
> ----- Original Message ----- 
> From: "Paul Newton" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2008 10:43 PM
> Subject: Re: Send text file to default printer
>
>
>   
>> Grigore Dolghin wrote:
>>     
>>> It was introduced in VFP9 - it means Inline Case. Ideal for cases in 
>>> Select
>>> commands. If you're using a lower VFP version you'll have to stick to old
>>> good DO CASE.
>>>
>>> ----- Original Message ----- 
>>> From: "Garry Bettle" <[EMAIL PROTECTED]>
>>> To: <[EMAIL PROTECTED]>
>>> Sent: Thursday, January 03, 2008 10:30 PM
>>> Subject: RE: Send text file to default printer
>>>
>>>       
>>>> Hi Dave,
>>>>
>>>> Hope this email finds you well.
>>>>
>>>> Sorry to trouble you, but can you explain what lcase means?:
>>>>
>>>>
>>>>         
>>>>> errorDesc = Icase(nStat=2,"Invalid path or filename", ;
>>>>>
>>>>>           
>>>> Cheers,
>>>>
>>>> Garry
>>>>
>>>>         
>> Garry, Grigore
>>
>> ICASE is like IIF and is a function - so, Grigore, if you're using a
>> lower version of VFP you cannot use DO CASE instead of ICASE - instead
>> you must use nested IIFs (which can be a real PITA)
>>
>> ICASE can be great for use in SetAll statements for, e.g., setting grid
>> highlighting ...
>>
>> Paul Newton
>>
>>
>>
>>     
[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.

Reply via email to