CONTAINSX Function
Syntax
Result_Flag as L = CONTAINSX(C String,C Words)
Arguments
- String
The target to examine, a character string containing words separated by space characters. Character
- Words
A character string containing words separated by space characters. The words to find in the target string.
Description
Returns TRUE if the string contains words that sound like like all 'Words'.
Discussion
CONTAINSX() returns .T. (TRUE) if all words in C Words appear at least once in the C String ; otherwise, it returns .F. (FALSE). Words found in memo fields will be highlighted. Searches are based on Soundex values. Performs a broader search than CONTAINS() , or CONTAINSI().
Example
containsx("now is the time for all good men", "now all is women") -> .F. because the word "women" does not appear in the first string containsx("now is the time for all good men", "now all is ") -> .T.
See Also