In SX Microcontrollers, SX/B Compiler and SX-Key Tool, smhhadima wrote: This should do it for you **************** [color=red>x] temp1 var Byte (4) TX1_Byte sub 1,4 TX1_Byte: 'Fills the array with PARAM values temp1(0) = __PARAM1 temp1(1) = __PARAM2 temp1(2) = __PARAM3 temp1(3) = __PARAM4 temp2 = __PARAMCNT 'Get the PARAMCNT do while temp2 > 0 'Is the PARAMCNT greater than 0 serout tx1, T57600, temp1(x) [/color] dec temp2 'Reduce the PARAMCNT value by 1 [color=orange>]inc x[/color] 'Will it increment the array to the next element? loop return ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=202186#m202200 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)