esafwan
esafwan

Reputation: 18029

Get filenames from opendialogform in a string vb.net

How can i get all the filnames in array as a string?

Dim paths As Array
Dim npaths As String

od.ShowDialog()
paths = od.FileNames
npaths = ArrayToDelimited(paths, ",")

Upvotes: 0

Views: 123

Answers (1)

Meta-Knight
Meta-Knight

Reputation: 17875

You're looking for String.Join:

npaths = String.Join(",", paths)

Upvotes: 2

Related Questions