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

File Select Class: AddFileMask

Previous  Top  Next  


Prototype: (String pName, String pMask, Byte pFree=False)

 

pNameDescriptive name for the file mask, such as "Text files" or "All files"
pMaskWildcard mask for the file type, such as "*.txt" or "*.*"
pFreeSpecifies 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:

BuildFileMask

GetFileMask

SetFileMask

FileMasks

FileMask

ITFileMaskQueue

 



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