folderlistview FileMask property
Return to Introduction  Previous page  Next page
Applies to
dcFolderListView component.  

Declaration
property FileMask: String// *.* by default  

Description
The FileMask property is the wildcarded mask, filter which specifies which files you would like to show in the dcFolderListView control. The FileMask can contain wildcard characters (* and ?). For example, if you would to show only .PAS files - set FileMask to "*.pas". To show only .PAS files which begins from "a" character - set FileMask to "a*.pas"  
 
tip As well as the SearchMask property of the dcDiskScanner component, the FileMask can contain multiple mask, separated by semicolon (;). For example, if you would like to show only graphic files - set FileMask to "*.bmp;*.gif;*.jpg".  

Note
iiwarning Even after specifying the filter mask, the dcFolderListView will show ALL folders as far as ShowAllFolders property is True, disregarding to FileMask.  
 
For example, if you would like to show only files and folders that begins from "a" character, set FileMask to "a*.*" and ShowAllFolders to False.  

See also
ShowAllFolders property.  
File not found.