FileBrowser.ShowOpen

Description

The ShowOpen method of the FileBrowser object allows the user to identify a file to work with.

C# Syntax

FileBrowser.ShowOpen();

Scripting Syntax

FileBrowser.ShowOpen();

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.ShowOpen							' show an open 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.ShowSave