Display an 'open file' dialog. The file type filter must be manually constructed and passed in. If MultiSelect=True then returns a string array containing the selected file paths otherwise returns a string containing the selected file path or an empty string if 'Cancel' was pressed or nothing was selected.
The caption to appear in the title bar at the top of the dialog window
The file type filter for the file browsing window
The default path for the file browsing window
Allow selection of multiple files in a folder
Insist that the selected file must exist
Hide read-only files
Dim filter As String
Dim s As String
filter = XF_WINAPI_AddFilterItem(filter, "Doc (*.doc)", "*.doc")
filter = XF_WINAPI_AddFilterItem(filter, "Docx (*.docx)", "*.docx")
filter = XF_WINAPI_AddFilterItem(filter, "Rtf (*.rtf)", "*.rtf")
s = xf.Interact.OpenFileDialog_All("Select a document", filter)
If s <> "" Then txtDocPath = s