PickFolder(SelectedFolder, Caption, ParentWindow, Flags, AllowedFolderType)
Displays the Pick Folder dialog box. This is a modal dialog box which means that code execution will not continue until the user either selects a folder or cancels the dialog box. Returns an RDOFolder object corresponding to the folder that the user selects in the dialog box. Returns Nothing when the dialog box is canceled by the user.
SelectedFolder - optional, RDOFolder. If specified, this folder will be initially selected. If not specified, the Inbox folder is selected when the dialog is displayed.
Caption - optional, string. If specified, determines the Select Folder dialog caption. If not specified, defaults to "Select Folder" (localized appropriately in French/German/Italian/Portugese/Russian/Spanish along with other dialog box controls).
ParentWindow - optional, integer. If specified, the handle of the dialog's parent window. If not specified, the dialog is shown as a child of the currently active window.
Flags - optional. Can be a combination of the following rdoPickFolderFlags enum values:
sffHideNewButton (1) - hides the "New" button, preventing the user from creating a new folder.
pffHideParentFolders (2) - displays only the specified folders and its subfolders (see the screenshot)
pffNoSizing (4) - prevents the user from resizing the dialog.
pffHidePublicFoldersStore (8) - hides the Public Folders store but leaves all the other stores visible (unless pffHideParentFolders is also specified).
pffShowStoresOnly (16) - only shows the top level folders of the stores in the current profile. "New" button will be hidden.
AllowedFolderType - optional. One of the rdoItemType enums. If not specified, all folders are displayed. If is specified, only the folders with the DefaultItemType property matching the specified value are displayed.
The following values are supported: olMailItem, olAppointmentItem, olContactItem, olTaskItem, olJournalItem, olNoteItem.
Partager