www.icetips.com  Icetips Utilities Documentation 11/21/2010    

File Select Class: BuildFileMask

Previous  Top  Next  


Prototype: (),String

 

ReturnsReturns 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:

AddFileMask

FileMask

FileMasks

 



Direct link to this page: http://www.icetips.com/manuals/utilities/buildfilemask_fileselect.htm