Discussion Locked

MS Dialog Automation Objects

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to use the MS Dialog Automation Objects in a project and I am have set the multiselect property to True. However, when multiple files are selected, only one is listed in the FileName property, and the FileNames.Count property is 1.As an unsupported dll, finding help through official channels has been fruitless. Does anyone have a clue how to select multiple files in this way (and make use of them)?

Thanks,
Ed

3 replies

by ketanparekh

you have to set flag for multiselect file. The file name is returned in a string with space delimited. You can use split function to transform that string in to array then you can loop thru array to get file name.
e.g of code
sFileArray = Split(dlgOpen.FileName, Chr(34))

This discussion is closed to new replies.