In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Marshall, You cannot use any math within the array subscript. So the string(strlen -1) is not allowed. With some simple re-arrangement you can avoid the need to do the subtraction. See if this works: DO READ idx, char idx = idx + 1 string(strlen) = char strLen = strLen + 1 GOSUB CalcCRC IF strLen = 15 THEN EXIT IF char = EOM THEN EXIT LOOP Bean ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=394728#m394736 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)