In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote: On your second question, you might do something like this [color=blue>GET_VALUE: ] theVal = 0 DO key = SCAN_KEY IF key = Enter THEN EXIT theVal = theVal * 10 theVal = theVal + key INC keyCount LOOP UNTIL keyCount = 3 RETURN[/color] This routine will allow up to three keys and can terminate with an enter key -- that way you can get one- or two-digit values. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89343#m89361 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)