<- Back to SMTPit Pro function list
SMTPit_File_SelectFileWithDialog
- Description
This function will display a file 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_SelectFileWithDialog ( 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_SelectFolderWithDialog, SMTPit_File_Size
- Examples
Example 1
Code:
SMTPit_File_SelectFileWithDialogResult:
Displays a file chooser dialog, and returns the path of the chosen file.Example 2
Code:
SMTPit_File_SelectFileWithDialog("c:\images")Result:
Displays a file chooser dialog starting at "images" directory on Windows.Example 3
Code:
SMTPit_File_SelectFileWithDialog("/Images/")Result:
Displays a file chooser dialog starting at "images" folder on Mac.Example 4
Code:
SMTPit_File_SelectFileWithDialog("";"Choose a file...")Result:
Displays a file chooser with the prompt "Choose a file...".