I am guessing that letter is defined as a char in which case you need to use char.ToUpper(letter).
In the future when something isn't working and you're seeking help it's always helpful to provide the exact error message you are gettingg and when you are getting it, e.g. at runtime or compile time. It helps you get help faster. Thanks.
Hope this helps. |