Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

populating an array from another array

Status
Not open for further replies.

nishasp

Programmer
May 13, 2004
33
GB
Does anyone know how i can get an array of bytes to be stored in another array. The problem is that i am reading from a serial port, which receives each byte separately. So the array of bytes actually only uses its zero element, as each byte comes in one at a time. I can't seem to access this element value as i need to sum the bytes that come in. I think i need to put the received bytes into another array which i can access, but i don't know how to do it...please help!!

thanks,

nisha
 
Tis quite a vague and confusing question.

You are saying that your code reads data into element 0 of an array - and then overwrites it the next time a byte comes in? In which case, why are you using an array?

Can you supply more details, with code snippets if pos?



Hollingside Technologies, Making Technology work for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top