|
Previous Top Next |
Prototype: | (String pName, String pMask, Byte pFree=False) |
pName | Descriptive name for the file mask, such as "Text files" or "All files" |
pMask | Wildcard mask for the file type, such as "*.txt" or "*.*" |
pFree | Specifies if existing entries should be deleted. Set to True if the filemask needs to be started over and the existing entries removed. |
This method adds a single entry into the file mask queue. The file mask is used to construct a string that is used for the extensions parameter when FileDialog() is called by the SelectFile method.
Example:
FS ITFileSelectClass
Code
FS.AddFileMask('INI File','*.ini',True)
FS.AddFileMask('All Files','*.*.')
FS.SetDefaultPath(INIMgr.Fetch('UpdateGetFromINI','FS:INIFilename'))
FS.SelectFile(?Loc:IniFileName)
INIMgr.Update('UpdateGetFromINI','FS:INIFilename',FS.GetFilePart(Loc:IniFileName,FNS_FullPath))
See also: