In SX Microcontrollers, SX/B Compiler and SX-Key Tool, johncouture wrote: Jon, Sorry for being so dense. Using your READ2.SXB code from a couple of weeks ago as base code, I added the following variables and code. I don't understand why the TX_STR does not work with the array (it works ok with the string constants)? I tried TX_STR #tempArray,10 and TX_STR @tempArray,10 I know the tempArray is in the RAM area and the string constants are in the EEPROM area .... is there a syntax trick that I am missing? ' ------------------------------------------------------------------------- ' NEW VARIABLES ' ------------------------------------------------------------------------- intChar VAR byte aryIndex VAR byte tempArray VAR Byte(16) aryEnd var byte ' ------------------------------------------------------------------------- ' NEW CODE (just before your goto Start) ' ------------------------------------------------------------------------- intChar = "A" ' Letter "A" aryEnd = 0 ' Just to make sure array is zero terminated TX_STR "Sending Characters " FOR aryIndex = 0 to 14 tempArray(aryIndex) = intChar ' fill array with ABCDEF.... TX_BYTE tempArray(aryIndex) INC intChar NEXT TX_STR CRLF PAUSE 1000 TX_STR "Sending a String " TX_STR tempArray,10 TX_STR CRLF GOTO Start ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=88281#m88297 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)