Vcl.Dialogs.TOpenDialog.InitialDir

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property InitialDir: string read GetInitialDir write SetInitialDir;

C++

__property System::UnicodeString InitialDir = {read=GetInitialDir, write=SetInitialDir};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs TOpenDialog

Description

Determines the current directory when the dialog opens.

InitialDir determines the 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 ForceCurrentDirectory 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