SelectFolder Function

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

Syntax

result = SelectFolder




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.