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

File Select Class: SetDefaultPath

Previous  Top  Next  


Prototype: (String pDefaultPath, Byte pDefaultProgramPath=1)

 

pDefaultPathPath to assign to DefaultPath.
pDefaultProgramPathDetermines 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:

SetDefaultFolder

SetDefaultDir

SelectFile

SelectFolder

SelectDir

SetForceDefaultPath

DefaultPath

ForceDefaultPath



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