|
Previous Top Next |
Prototype: | (String pFileMask, Byte pFree=True) |
pFileMask | File mask to parse |
pFree | Indicates 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: