In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: You need the AND operator ( & ) to extract nibbles, also I assume your AsciiNo is "0" [3] LCDCMD LcdLine2Pos7[/3] [3] Digit = Hrs ' Put Hrs to LCD[/3] [3] SWAP Digit[/3] [3] Digit = Digit & $0f[/3] [3] Digit = Digit + "0" That will give you "0" to "9" in Digit. regards peter [/3] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=338488#m338493 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)