Page 1 of 1

Copy data from byte to byte in array

Posted: Fri Nov 23, 2012 11:43 am
by Desdewit
Is there a better way to copy data from one byte in an array to another in a different array?
I'm currently using "DataIn [5] = BYTE [40]" .

Re: Copy data from byte to byte in array

Posted: Fri Nov 23, 2012 12:18 pm
by r_romeo
I am using a lot of arrays, normally that is a very good approach, also I use the variables like DataIn = BYTE [j] where i, j are variables that can be managed by other formulas.

Re: Copy data from byte to byte in array

Posted: Fri Nov 23, 2012 1:11 pm
by Enamul
Yes, better way is to use different index variable for two different array and use loop to copy from one to another.