Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INLIST syntax
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00019640
Message ID:
00019648
Views:
40
>>I have a TEST field which contains something like 1,2,5,18,23,32,33,34.
>>
>>I would like to compare a value within this field value.
>>
>>For example, I would like to do something like
>>
>>IF INLIST(TEST,'23')
>> ...
>>ENDIF
>>
>>But, this is not working. How can I process this validation?
>
>If it's numeric don't use quotes...

No, INLIST can't work within a string.

The INLIST syntax is usually IF INLIST(gcMonth,'January','February','March'). I just mentioned it to show the result I wanted to get.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform