Parameters
- source
- Required. Any String expression.
- pattern
- Any String expression conforming to the pattern-matching conventions described in Like Operator (Visual Basic).
- compareOption
- Specifies how to compare strings to patterns, according to the CompareMethod Enumeration. Can be vbBinaryCompare for binary comparison or vbTextCompare for comparison based on a case-insensitive text sort order determined by your system's LocaleID value.
Return Value
A Boolean value indicating whether or not the string satisfies the pattern. If the value in string satisfies the pattern contained in pattern, result is True. If the string does not satisfy the pattern, result is False. If both string and pattern are empty strings, the result is True.