Hi All,

I am having a hard time figuring out how to convert a string I get from the mscomm1.input to an array of bytes. I can't seem to figure out how to get a single byte from a string, then convert it to a byte. I can display the string I am receiving, but not as bytes.

I am recieiving data through a bluetooth link and the comm port from the robot I am working on. What I want to do is to get the mscomm1.input string length, then loop through taking one character of the string, converting it to a byte, then storing it in an array of bytes.

I just can't seem to figure out how to address individual characters in an array.

Thanks for the help,

Jonathan

www.madlabs.info