1 Replies - 251 Views - Last Post: 05 January 2018 - 11:23 AM Rate Topic: -----

#1 ikhlas06   User is offline

  • D.I.C Regular

Reputation: 1
  • View blog
  • Posts: 327
  • Joined: 20-May 16

How can I combine 3 string arrays into 1 string array?

Posted 05 January 2018 - 11:05 AM

How can I combine 3 string arrays into 1 string array in asp vb .net?

dim ar1() as string = {"a1", "a2"}
dim ar2() as string = {"b1"}
dim ar3() as string = {"c1", "c2", "c3"}
dim CombineArrays() as string 


i want output to be
{"a1", "a2", "b1, "c1", "c2", "c3"} 

This post has been edited by ikhlas06: 05 January 2018 - 11:08 AM


Is This A Good Question/Topic? 0
  • +

Replies To: How can I combine 3 string arrays into 1 string array?

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14164
  • View blog
  • Posts: 56,756
  • Joined: 12-June 08

Re: How can I combine 3 string arrays into 1 string array?

Posted 05 January 2018 - 11:23 AM

Add them all to a collection and output it as a list.. or use array.copy.. or a few for loops.. there's plenty of ways.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1