Method
SelectFolder
Warning
This item was deprecated in version 2019r2. Please use FolderItem.ShowSelectFolderDialog as a replacement.
Description
Displays a dialog box similar to the open-file dialog allowing the user to select a folder rather than a file.
Notes
The SelectFolder 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 SelectFolder function allows the user to choose a folder rather than a file.
Sample code
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
Compatibility
All project types on all supported operating systems.
See also
FolderItem.ShowOpenFileDialog, FolderItem.ShowSaveFileDialog functions; SelectFolderDialog class.