Like Operator
Syntax:
str1 Like str2
Group:
Operator
Description:
Return the True if str1
matches pattern str2. The pattern in str2
is one or more of the special character sequences shown in the following
table.
Char(s)
Description
? Match any single character.
- Match zero or more characters.
# Match a single digit (0-9).
[charlist]
Match any char in the list.
[!charlist]
Match any char not in the list.
Example:
Sub Main
Dim X As Object
Dim Y As Object
Debug.Print X Is
Y ' True
End Sub