|
-
Aug 8th, 2004, 02:11 PM
#1
Thread Starter
Junior Member
Coverting a string to an array of bytes
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|