"Hulatt, Jon" writes: > In C, the switch{} case values must be constant expressions. They are > evaluated at comile time. You cannot have an X in a case. You'll have to > implement your condition another way. I'm sorry for my wrong answer. You are right. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.