>I don't think I have ever noticed this, but
>if I say
>x = "_New"
>? inlist(UPPER(x),"NEW") && the result is .F.
>
>But if I say
>x = "New_"
>? inlist(UPPER(x),"NEW") && the result is .T.
>
>Shouldn't it be true for both cases????
>Set exact is OFF
>
>Thanks
No, read SET EXACT on help.
SET EXACT OFF
? "NEW_"="NEW"
? " NEW"="NEW"
INLIST(a,b1,b2,...) it is like
a=b1 OR a=b2 OR a=b3...