|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface > DBWSaveFileName |
Shows a save file dialog box.
Function DBWSaveFileName(Root, Filter)
Root |
starting directory for the save dialog box |
|---|---|
Filter |
filter to apply. It is a string of the form: description1|filter1|description2|filter2|... see example for further information |

The function returns the full path name of the saved file without the last backslash "\"
The filter string must be of the format
"description1|filter1|description2|filter2|description3|filter3|..."
Please note the variable name "myfilter": it's better NOT to use the word "filter" because it could be a reserved one.
rootdir = "C:\"
myfilter = "Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico|All files (*.*)|*.*"
risp = DBWSaveFileName(rootdir,myfilter)
msgbox risp