Array.Copy method

  • Thread starter Thread starter Gidon Sela
  • Start date Start date
G

Gidon Sela

Is the Array.Copy Method only limited to copying one
dimensional arrays? If this is not the case, what is the
syntax to copy multi-dimensional arrays with this method?
 
Hi Gidon,
Is the Array.Copy Method only limited to copying one
dimensional arrays? If this is not the case, what is the
syntax to copy multi-dimensional arrays with this method?

It also exist for the Datatable, but it is not a member of Ilist, and
therefore you have to see for it at each array yourself if and what method
you can use.

Cor
 
Yes, it is only supported for one dimensional arrays.

Regards - OHM


Gidon said:
Is the Array.Copy Method only limited to copying one
dimensional arrays? If this is not the case, what is the
syntax to copy multi-dimensional arrays with this method?

Regards - OHM# OneHandedMan{at}BTInternet{dot}com
 
Sorry, I was looking at the copyTo.

Dim A1(1, 2) As Integer

Dim A2(1, 2) As Integer

'A1 - Fill

A1(0, 0) = 10

A1(0, 1) = 20

A1.Copy(A1, A2, A1.Length)



Regards - OHM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top