KeywordExists
Sub KeywordExists($source As String, $keyword As String, $isWholeWord As Boolean) As Boolean
Searches $source to determine whether $keyword exists. If $isWholeWord is TRUE, the function searches for whole words only. Otherwise, it also matches parts of words.
KeywordExists is case-insensitive.
Parameters
- $source ... String expression in which the search is performed.
- $keyword ... String expression to search for.
- $isWholeWord ... TRUE or FALSE.
Example:
'Search for whole words
If KeywordExists($sSource, "watch", True) Then
'....
End If