In SX Microcontrollers, SX/B Compiler and SX-Key Tool, cutsing wrote: Hi All, I am trying to use the [b]lookdown[/b] command to set some bits in a word variable but it seems that the word variable type does not allow a variable index beyond 7 with this command. CMDBITS VAR WORD GP VAR BYTE GP1 VAR BYTE LOOKDOWN GP, "1","2","3","C","P","?","0","Z","R","W","S","V","t", GP CMDBITS.GP = 1 When compiling for an SX48, the error is: :skull: Expected a Value between 0 And 7 "GP" Is there a fix or workaround for this? Thanks Thad ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=156140 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)