|
Previous Top Next |
Prototype: | (String pFileMasks) |
pFileMasks | File 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: