From RAD Studio API Documentation
Jump to: navigation, search


function SelectDirectory(const Caption: string; const Root: string; var Directory: string): Boolean;


extern DELPHI_PACKAGE bool __fastcall SelectDirectory(const System::UnicodeString Caption, const System::UnicodeString Root, System::UnicodeString &Directory);


Type Visibility Source Unit Parent
function public
FMX.Dialogs FMX.Dialogs


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 Root parameter and the Directory parameter.

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