Case statement error

It looks like you're getting a compilation warning in the code you didn't post