How to create one long string from a collection of values
How would I create one long string from a collection of values? What I mean by this is - say that you have a listbox of e-mail addresses and you want to be able to put them all together with semi-colons after them and into one string that will be used as an e-mail address.
Dim s As String = ""
Dim i As Int16
For i = 0 To lstEmail.Items.Count - 1
s &= lstEmail.Items(i).ToString() & "; "
Next
's = the string
MessageBox.Show(s)
Bookmarks