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