<< back to sysax.com Product page |
The IsWildcardMatch method can be used to check name matching using wildcards. The "i" option can be specified to perform case insensitive matching.
Exhibit 14.1. IDL Definition of method to wildcard matching
HRESULT IsWildcardMatch ([in] BSTR b_name, [in] BSTR b_pattern, [in, defaultvalue("")] BSTR b_options, [out, retval, defaultvalue(NULL)] VARIANT_BOOL *f_is_match); |
Exhibit 14.2. Example usage of method to wildcard matching (VBScript)
If IsWildcardMatch("file.txt", "*.txt", "i") Then 'there is a match End If |