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

File Select Class: SetCaption

Previous  Top  Next  


Prototype: (String pCaption)

 

pCaptionCaption to use when FileDialog is called from SelectFile and SelectFolder/SelectDir

 

This method sets the wCaption property that is used when FileDialog() is called.  wCaption defaults to "Select File" and "Select Folder" for SelectFile and SelectFolder/SelectDir respectively.

 

Example:

FS  ITFileSelectClass

Code

FS.AddFileMask('INI File','*.ini',True)

FS.AddFileMask('All Files','*.*.')

FS.SetDefaultPath(INIMgr.Fetch('UpdateGetFromINI','FS:INIFilename'))

FS.SetForceDefaultPath()

FS.SetCaption('Select INI File') !! Set FileDialog caption

FS.SelectFile(?Loc:IniFileName)  !! Use control on window

!!Or

FS.SelectFile(Loc:IniFileName)   !! Use variable

INIMgr.Update('UpdateGetFromINI','FS:INIFilename',FS.GetFilePart(Loc:IniFileName,FNS_FullPath))

 

 

See also:

GetCaption

SelectDir

SelectFolder

SelectFile

wCaption

 

 



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