SelectFolder

From Xojo Documentation


Method

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

Syntax

result=SelectFolder

Part Type Description
result FolderItem The folder the user selected.

Notes

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

Examples

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

Dim f As FolderItem
f = SelectFolder
If f <> Nil Then
MsgBox(f.Name)
End If

See Also

GetOpenFolderItem, GetSaveFolderItem functions; SelectFolderDialog class.