<- Back to SMTPit Pro function list
SMTPit_File_SelectFolderWithDialog
- Description
This function will display a folder chooser dialog. You can set the location to open the dialog to, as well as display a custom prompt message.
- Return Type
- Text
- Format
- SMTPit_File_SelectFolderWithDialog ( StartPath ; Prompt )
- Optional Parameters
- StartPath
The Path to the Folder to display when the dialog first opens.
- Prompt
An optional Prompt or Message to display on the Dialog.
- StartPath
- Related Items
- SMTPit_File_Copy, SMTPit_File_Delete, SMTPit_File_Exists, SMTPit_File_Export, SMTPit_File_GetPath, SMTPit_File_Move, SMTPit_File_Rename, SMTPit_File_SelectFileWithDialog, SMTPit_File_Size
- Examples
Example 1
Code:
SMTPit_File_SelectFolderWithDialogResult:
Displays a folder chooser dialog, and returns the path of the chosen folder.Example 2
Code:
SMTPit_File_SelectFolderWithDialog("c:\images")Result:
Displays a folder chooser dialog starting at "images" directory on Windows.Example 3
Code:
SMTPit_File_SelectFolderWithDialog("/Images/")Result:
Displays a folder chooser dialog starting at "images" folder on Mac.Example 4
Code:
SMTPit_File_SelectFolderWithDialog("";"Choose a folder...")Result:
Displays a folder chooser with the prompt "Choose a folder...".