Result_Flag as L = CONTAINSI( Search_String as C, Find_Words as C )
The target to examine, a character string containing words separated by space characters.
A character string containing words separated by space characters. The words to find in the target string.
CONTAINSI() returns .T. (TRUE) if all words in the Find_Words string appear at least once in the Search_String ; otherwise, it returns .F. (FALSE). Words found in memo fields will be highlighted. Find_Words can contain wildcard characters (* and ? ). Case insensitive.
Alpha Five Version 5 and Above
containsi("now is the time for all good men","now all is women") -> .F. because the word "women" does not appear in the first string
containsi("now is the time for all good men","now all is ") -> .T.
This example indicates whether "blah" is found in a memo field named MemoField.
This example indicates whether "blah" is found in a RTF memo field named RtfField.
Character Comparison Functions, CONTAINS(), CONTAINSX()