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

File Select Class: ParseFileMask

Previous  Top  Next  


Prototype: (String pFileMask, Byte pFree=True)

 

pFileMaskFile mask to parse
pFreeIndicates if it should free the FileMasks queue property before adding to it.

 

This method takes a file mask, for example 'Text Files|*.txt|All files|*.*' and parses it to add it to the FileMasks queue property.  Normally you do not call it directly but rather would call  SetFileMaskmethod which also sets the FileMask string property.  ParseFileMask may be set as private in a future release.

 

Example:

FS  ITFileSelectClass

F   CString(1025)

Code

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

 

!! Note that at this point FS.FileMask is still an empty string!

 

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

 

 

See also:

GetFileMasks

SetFileMask

SelectFile

FileMask

FileMasks

 



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