DBWSelectFileMulti

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface >

DBWSelectFileMulti

Description

Shows a file dialog box interface that allows multi selections

Syntax

Function DBWSelectFileMulti(Root, Filter, Title)

Parameters

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

DBWSelectFileMulti

Return values

The function returns an array of values that are the full path name of the selected files

Remarks

Please note the variable name "myfilter": it's better NOT to use the word "filter" because it could be a reserved one.

See also

function DBWSelectFile

Example

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