ISSaveDialog.Execute

Description

This function executes the dialog window.

Syntax

object.Execute()

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

Return Value

bool

Returns True if the dialog was executed successfully.

Example

Show the dialog and display the selected file name.

Dim aDialog
Dim aResult

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

aResult = aDialog.Execute

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

Version information

Added in v7.8.0
return type changed from string to bool in v8.1.0