Compare your code and mine. If you look at my code after reading what you wrote regarding "goto", you should understand why compiler denies such "case" constructions.