FMX.Dialogs.SelectDirectory
Delphi
function SelectDirectory(const Caption: string; const Root: string;
var Directory: string): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall SelectDirectory(const System::UnicodeString Caption, const System::UnicodeString Root, System::UnicodeString &Directory);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FMX.Dialogs.pas FMX.Dialogs.hpp |
FMX.Dialogs | FMX.Dialogs |
Description
Brings up a dialog to allow the user to enter a directory name.
Call SelectDirectory to let the user enter a directory name.
The Caption parameter specifies a caption for the dialog. The Root parameter specifies the root directory from which to browse. The selected directory is returned as the Directory parameter. SelectDirectory does not change the value of the current directory.
Warning: You cannot use the same variable for the
Rootparameter and theDirectoryparameter.
SelectDirectory returns True if the user selected a directory and chose OK, and False if the user chose Cancel or closed the dialog box without selecting a directory.
See Also
Code Examples