|
Previous Top Next |
Prototype: | (),String |
Returns | Returns a string with the filemask to use with FileDialog() |
This method loops through the FileMasks property queue and builds a string with the file masks, for example 'Text Files|*.txt|All files|*.*' This method is called by the SelectFile method and you do not need to call it unless you want to use the FileMask to keep track of your own file masks, i.e. without using the SelectFile method.
Example:
FS ITFileSelectClass
F CString(1025)
Code
FS.AddFileMask('INI File','*.ini',True) !! Start a new FileMask string
FS.AddFileMask('Text File','*.txt.')
FS.AddFileMask('CSV File','*.csv.')
FS.AddFileMask('All Files','*.*.')
!! FS.BuildFileMask() will now return the following string:
!! 'INI File|*.ini|Text File|*.txt|CSV File|*.csv|All Files|*.*'
If FileDialog('Select file',F,FS.BuildFileMask(),FILE:KeepDir+FILE:LongName)
End
See also: