Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent to INLIST for numeric values?
Message
 
 
To
21/05/1999 12:08:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00221425
Message ID:
00222128
Views:
24
>>Is there a command like INLIST so I don't have to say IF x=1 or x=4 or x=12 or x=32 etc...? Right now I convert x to a string and use INLIST, but I have to code around the SET EXACT setting, which is somewhat bothersome. Thanks for any feedback.
>>
>>Marcus.
>Marcus,
>It's again Inlist.
>? inlist(myNumber, 1,3,4,19...)
>Cetin

Thanks Cetin and Ed,
Leave it to me to overlook the obvious! I've just always used INLIST with characters, and assumed that it only worked with characters.

Thanks again,
Marcus.
Previous
Reply
Map
View

Click here to load this message in the networking platform