FolderItem.ShowSelectFolderDialog

From Xojo Documentation

Revision as of 20:44, 30 March 2020 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.