Xbasic
IS_ONE_OF Function
Syntax
Result_Flag as L = is_one_of(C expression ,C list_of_values )
Arguments
- Result_Flag
.T. = Indicates that the Expression is a member of the List_of_Values. .F. = Indicates that Expression was not found.
- expression
The line of text data to find in the List_of_Values.
- list_of_values
A CR-LF delimited list of values.
Description
Returns .t. if a value is contained in a crlf delimited list of values
Discussion
The IS_ONE_OF() function determines whether a text string is a member of a list.
Example
dim str as C
str = <<%a%
a
b
c
d
e
%a%
? is_one_of("c", str)
= .T.See Also