|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface > DBWSelectFile |
Shows a file dialog box interface.
Function DBWSelectFile(Root, Filter)
Root |
the starting directory for the dialog box |
|---|---|
Filter |
the filter you want 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 selected file without the last backslash "\"
Please note the variable name "myfilter": it's better NOT to use the word "filter" because it could be a reserved one.
function DBWSelectFileMulti
rootdir = "C:\"
myfilter = "Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico"
risp = DBWSelectFile(rootdir,myfilter)
DBWMsgbox risp