|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface > DBWSelectFileMulti |
Shows a file dialog box interface that allows multi selections
Function DBWSelectFileMulti(Root, Filter, Title)
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 |
Title |
the title of the window |

The function returns an array of values that are the full path name of the selected files
Please note the variable name "myfilter": it's better NOT to use the word "filter" because it could be a reserved one.
function DBWSelectFile
rootdir = "C:\"
myfilter = "Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico|All files (*.*)|*.*"
title = "select many files"
DBWInit(true)
filesSelected = DBWSelectFileMulti(rootdir,myfilter,title)
for i = lbound(filesSelected) to Ubound(filesSelected)
DBWMsgBox filesSelected(i)
next