byte KeyToDigit(char chr)
{
for (byte i = 1; i < 10; i++)
if (i.ToString().ToCharArray()[0] == chr)
return i;
return 0;
}
it should turn a character into a digit and return zero if it is no digit. What I have now works, but seems needlessly complicated. How can this be made easier?


Sign In
Create Account


Back to top









