FolderItem.ShowSelectFolderDialog

From Xojo Documentation

Revision as of 14:53, 7 October 2019 by PLefebvre (talk | contribs)
Shared Method

FolderItem.ShowSelectFolderDialog()

New in 2019r2

Supported for all project types and targets.

Displays a dialog box similar to the open-file dialog allowing the user to select a folder rather than a file.

Syntax

result=ShowSelectFolderDialog

Part Type Description
result FolderItem The folder the user selected.

Notes

The ShowSelectFolderDialog function displays a dialog box similar to the open-file dialog box displayed by the FolderItem.ShowOpenFileDialog function. The difference is that the dialog box displayed by the ShowSelectFolderDialog function allows the user to choose a folder rather than a file.

Examples

This example displays the name of the folder the user chose.

Var f As FolderItem
f = Folderitem.ShowSelectFolderDialog
If f <> Nil Then
MessageBox(f.Name)
End If

See Also

FolderItem.ShowOpenFileDialog, FolderItem.ShowSaveFileDialog functions; SelectFolderDialog class.