2 arrays into 1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rodchar

    #1

    2 arrays into 1

    hey all,

    i was wondering what the best way to get my 2 arrays into 1 single array.

    Thanks,
    rodchar
  • Herfried K. Wagner [MVP]

    #2
    Re: 2 arrays into 1

    "rodchar" <rodchar@discus sions.microsoft .com> schrieb:[color=blue]
    > i was wondering what the best way to get my 2 arrays into 1 single array.[/color]

    Create a new array of appropriate size and use
    'Buffer.BlockCo py'/'Array.Copy'/'Array.CopyTo' to copy the data of the two
    arrays into the new array.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • rodchar

      #3
      Re: 2 arrays into 1

      thank you.

      "Herfried K. Wagner [MVP]" wrote:
      [color=blue]
      > "rodchar" <rodchar@discus sions.microsoft .com> schrieb:[color=green]
      > > i was wondering what the best way to get my 2 arrays into 1 single array.[/color]
      >
      > Create a new array of appropriate size and use
      > 'Buffer.BlockCo py'/'Array.Copy'/'Array.CopyTo' to copy the data of the two
      > arrays into the new array.
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://classicvb.org/petition/>
      >
      >[/color]

      Comment

      Working...