[RESOLVED] How can I merge 2 strings array into a new string array ?!!
Hello ,
I have 2 string arrays and I want to merge them together then put the elements into a third string array ..
for an example :
string1="a","b","c"
string2="d","e","f"
after merging:
string3="a","b","c","d","e","f"
Thanks for any help :)
Re: How can I merge 2 strings array into a new string array ?!!
try this:
vb Code:
Dim string1() As String = {"a", "b", "c"}
Dim string2() As String = {"d", "e", "f"}
Dim joinedList As New List(Of String)
joinedList.AddRange(string1)
joinedList.AddRange(string2)
Dim string3() As String = joinedList.toarray
Re: How can I merge 2 strings array into a new string array ?!!
I tried this and it worked perfectly God bless you . .
I wish for you a great day :)