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]" .
Copy data from byte to byte in array
Moderator: Benj
Re: Copy data from byte to byte in array
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.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
Re: Copy data from byte to byte in array
Yes, better way is to use different index variable for two different array and use loop to copy from one to another.