FileBrowser.ShowSave

Description

The ShowSave method of the FileBrowser object allows the user to type a name and path.

C# Syntax

FileBrowser.ShowSave();

Scripting Syntax

FileBrowser.ShowSave();

Examples

VBScript Example

dim oFileBrowser
set oFileBrowser = XSIUIToolkit.FileBrowser
oFileBrowser.DialogTitle = "Select a file"		' set the title of the file browser
oFileBrowser.InitialDirectory = "c:\myInitialDir\"
oFileBrowser.Filter = "All Files (*.*)|*.*||"	' Allow selection of all files
oFileBrowser.ShowSave							' show an save file dialog
If oFileBrowser.FilePathName <> "" Then
		logmessage "User selected " & oFileBrowser.FilePathName
Else
		logmessage "User pressed cancel"
End If

See Also

FileBrowser.FileBaseName FileBrowser.InitialDirectory FileBrowser.ShowOpen