In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Kevin, You said, "I now know to send a string it is $FF for 255 and requires 3 bytes which is what I don't want to do, correct?" Yes and no. Yes, you don't want to do this. No, $FF is not [b]always[/b] a string for 255. In fact, it's not a string at all since it's not in quotes. Anything in quotes in a string. Here's a string: "Kevin" Here's another: "$FF" And here's a third: "255" If I write 255 and don't surround it with quotes, the VB compiler won't recognize it as a string. $FF is just the hexadecimal version of 255 which is the decimal version of the binary 11111111. Your program does send the correct values, but it seems you may yet not be clear on why. You have the line: [code]o$ = o$ + Chr$(duty)[/code] This line is taking the string variable called [b]os$[/b] and filling it with binary values by using the [b]chr$[/b] command. Here's a webpage that helps explain strings and the chr$ command: [url]http://www.vbexplorer.com/VBExplorer/focus/strings_tutorial.asp[/url] Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=254111#m258032 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)