Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inlist
Message
From
14/10/2004 12:24:54
 
 
To
14/10/2004 12:14:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Inlist
Miscellaneous
Thread ID:
00951444
Message ID:
00951451
Views:
7
>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" && True
? " NEW"="NEW" && False
INLIST(a,b1,b2,...) it is like
a=b1 OR a=b2 OR a=b3...
Previous
Reply
Map
View

Click here to load this message in the networking platform