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

File Select Class: SetFileMask

Previous  Top  Next  


Prototype: (String pFileMasks)

 

pFileMasksFile mask to use.

 

This method sets the FileMask string property and then calls the ParseFileMask method to parse the file mask into entries for the FileMasks queue property.  The pFileMask parameter must contain valid file masks in the format expected by FileDialog(), i.e. "File name|WildCard" for example 'Text Files|*.txt|All files|*.*'

 

Example:

FS  ITFileSelectClass

F   CString(1025)

Code

FS.SetFileMask('INI File|*.ini|Text File|*.txt|CSV File|*.csv|All Files|*.*')

!! Same as calling:

!! 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','*.*.')

F = FS.GetFileMasks()  !! F now contains: 'INI File|*.ini|Text File|*.txt|CSV File|*.csv|All Files|*.*'

 

 

See also:

GetFileMasks

AddFileMask

BuildFileMask

ParseFileMask

SelectFile

FileMask

FileMasks

 

 



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