Xbasic
INLIST2 Function
Syntax
Result as L = INLIST2(C lookfor ,C comma_delimited_list )
Arguments
- lookfor
The text you want to find.
- comma_delimited_list
The text that you want to search.
Description
Case insensitive. Returns .t. if a string is found in a list of comma delimited values. Differs from inlist() in that the list to search is a single argument, rather than multiple arguments.
Discussion
Tests to see if a string is in a comma delimited list of values. Contrast this with the INLIST()function.
Example
? inlist2("red", "blue,green,red,yellow") = .T.
Note that the INLIST() function takes a variable number of arguments.
? inlist("red","blue","green","red","yellow") = .T.
See Also