FolderItem.ShowSelectFolderDialog

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
Shared Method

FolderItem.ShowSelectFolderDialog() As FolderItem

New in 2019r2

Supported on Desktop.

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.