property ExShellView.MatchPattern (strPattern as String, strWord as String) as Boolean
Checks if the given word matches the given mask.

TypeDescription
strPattern as String A string expression that represents the pattern that will be used to test given string (ie. "*.*","?.exe" etc..
strWord as String A string expression that is to be tested with given pattern
Boolean A Boolean expression that specifies whether the specified word matches the giving pattern. 

It might be pretty hard to test if certain text applies to a given pattern. Therefore, we included this method for you, so this test is done internally. This method will test if given string matches any pattern given by strPattern.

For example, this part of code will return True (tested in VB):

   Debug.Print ExShellView1.MatchPattern("*.zip", "test.zip")
   Debug.Print ExShellView1.MatchPattern("te*", "test.zip")
   Debug.Print ExShellView1.MatchPattern("?es*", "test.zip")
   Debug.Print ExShellView1.MatchPattern("t*p", "test.zip")

because 'test.zip' can by intentified by any of above patterns. Obviously, code

   Debug.Print ExShellView1.MatchPattern("*.zip", "test.exe")

will return False, because this is not a valid match.