Returns the path of the selected file ('c:\myFolder' out of 'c:\myFolder\foo.txt'). An empty String means that the user did not select any files.
// get accessor String rtn = FileBrowser.FilePath; |
dim oFileBrowser set oFileBrowser = XSIUIToolkit.FileBrowser oFileBrowser.DialogTitle = "Select a file" ' set the title of the file browser oFileBrowser.Filter = "All Files (*.*)|*.*||" ' Allow selection of all files oFileBrowser.ShowOpen ' show an open file dialog logmessage VB_LF ' if the user selected a file If oFileBrowser.FilePathName <> "" Then logmessage "File Path : " & oFileBrowser.FilePath ' the user did not select a file Else logmessage "User pressed cancel" End If |