switch statement input validation

I am trying to validate that the user has used not only the correct letter, but also has not tried to input a number. Is there a shorter or easier way than I have come up with?

 
 (choice!=a && choice!=A && choice!=b && choice!=B && choice!=c && choice!=C && choice!=d && choice!=D && choice!=e && choice!=E)
a) use 'a', not a
b) are you trying to validate input before passing in into switch? If so, just include a default clause which will deal with unproper input
Topic archived. No new replies allowed.