opendialog InitialDir property
Return to Introduction  Previous page  Next page
Applies to
dcOpenDialog and dcSaveDialog components.  

Declaration
property InitialDir: String;  

Description
The InitialDir property determines the current (default) directory displayed in the file-selection dialog when it opens. For example, to point the dialog at the WINDOWS\SYSTEM directory, set the value of InitialDir to C:\WINDOWS\SYSTEM.  
 
If no value is assigned to InitialDir, or if the specified directory does not exist, the initial directory is controlled by the global ForceCurrentDirectory variable. If ForceCurrentDirecotry is True, the dialog opens with the current working directory displayed. Otherwise, the dialog opens with either the current working directory or the My Documents directory, depending on the version of Windows.  

See also
InitialDirSaver property.  
File not found.