In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Mike, There are a number of ways to access multiple strings. 1) Simply read through all the strings (counting the zeros) until you find the one you want 2) Make them fixed length and offset the read position by stringnumber * length 3) Prefix each string with a byte count. Read the byte count then offset the read position by that value 4) Make a seperate data section with a list of string lengths, then add that value to the offset If the string data is > 255 bytes you'll have to use word variables. Like this: tmpW1 = StringData ' Get address of start of string data tmpW1 = tmpW1 + offset ' Adjust address to start of which string I want DO READ tmpW1, temp1 ' Start reading the string IF temp1 = 0 THEN EXIT INC tmpW1 ' Move to next character 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=136007#m136036 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)