ISProfile.CreateSaveDialog

Description

This function creates save dialog.

Syntax

object.CreateSaveDialog()

Part Attribute Type Description
object Required
The object always implements the ISProfile interface

Return Value

ISSaveDialog

Returns the save dialog.

Example

Show the dialog and display the selected file name.

Dim aDialogue
Dim aResult

set aDialogue = Profile.CreateSaveDialog
aDialogue.Title = "Save Recent Notes"
aDialogue.Filter = "*.txt||*.rtf||*.doc||*.*||"
aDialogue.FileName = "MyNotes.txt"

aResult = aDialogue.Execute

if aResult then 
  Profile.MsgBox("The selected file name is """ & aDialogue.FileName & """")
else 
  Profile.MsgBox("The file name was not selected")
end if
Note:

Version information

Added in v7.8.0