switch case statement problem

This is not all of your code.
Post all of it to have all questions answered.