ClearFilter
Empties the Filter of the Open and Save As dialogs.
Syntax: object.ClearFilter
- object
- required An object expression that evaluates to a cDialog.
Remarks
ClearFilter sets Filter to an empty string, as dlg.Filter = "" does. The four Set...Filters methods call it first, so each of them replaces the filter.
Example
Dim dlg As New cDialog
dlg.AddFilter "Text Files (*.txt)", "*.txt"
Debug.Print Len(dlg.Filter) > 0 ' True
dlg.ClearFilter
Debug.Print Len(dlg.Filter) ' 0