Display a 'save file' dialog. The file type filter must be manually constructed and passed in. Returns a string containing the selected file path or an empty string if 'Cancel' was pressed or nothing was selected.
The default path for the file browsing window
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 extension if none is specified for the file
(no description)
(no description)
Insist that the selected file must exist
Hide read-only files
1 2 3 4 5 6 7 8 9 | 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.SaveFileDialog( "Save a document" , filter) If s <> "" Then txtNewDocPath = s |