as an aside you may want to trim the string for whitespace incase the user fat fingers a space. Such as
switch ( strChampion.Trim() )
and also do a tolower in case the user doesn't type in it as "Liverpool" but "liverpool" so do this
switch ( strChampion.Trim().ToLower())
{
case "liverpool" : // as the lower since all will be that way.
HTH
William Wegerson (www.OmegaCoder.Com )
William just correct me.
String is Immutable. Is it good to do ToLower since it creates a new copy of the string in memory.
Is there any better option to eliminate such situations?
Thanks, A.m.a.L | [Remember to click "mark as answered" when you get a correct reply to your question]