Transfering data from Array to Array

 

Hello,

I need your help.

I have an Array called A[6] which has 6 values in it ( A[0] = 0.5, A[1]=1.0... ) .

I want to transfer these data to another array - B[6], so B[0] should be 0.5 - A[0] - and B[1] should be 1.0 - A[1].

Do I need to transfer the data from array to array by a mechanical trasformation, means:

B[0] = A[0];

B[1] = A[0];

...

or maybe by:

B = A

??

 
Or you could use a loop of some sort . . . for, while . . .
 

Thanks for your help.

That I know, but is there any shoter way?

Y.

 
crossy:

Thanks for your help.

That I know, but is there any shoter way?

Y.

Shorter than 1 line of code ?
 
RaptorUK:
Sorter than 1 line of code ?


Thank you, RaptorUK,

It is not just one array. I hope you understand me. But just leave it.

Best wishes to you. Y.

 
crossy:


Thank you, RaptorUK,

It is not just one array. I hope you understand me. But just leave it.

Best wishes to you. Y.

OK, use ArrayCopy then . . .