|
Previous Top Next |
Prototype: | (String pDefaultPath, Byte pDefaultProgramPath=1) |
pDefaultPath | Path to assign to DefaultPath. |
pDefaultProgramPath | Determines if the default program path should be used if pDefaultPath is empty |
This method sets the DefaultPath string property. If pDefaultProgramPath is true (default) the DefaultPath will be set to the program path (SELF.ProgPath) The DefaultPath property is used in the SelectFile and SelectFolder/SelectDir methods to set a start folder when FileDialog() is called.
Example:
FS ITFileSelectClass
Code
FS.SetDefaultPath(INIMgr.Fetch('UpdateGetFromINI','FS:INIFilename')) !! Set the default path
FS.SetUseShortNames
FS.SelectDir(?Loc:IniFileName)
INIMgr.Update('UpdateGetFromINI','FS:INIFilename',FS.GetFilePart(Loc:IniFileName,FNS_FullPath))
See also: