Hi
I have a TextBox in a windows form to enter 10 digit number followed by 2 letters.
(Ex: 304528929GH)
I have a code (got from my other thread) to calculate the totalof the above digits(3+0+4+....) and dividing the total by someother value to get the reminder. IT ALL WORKS FINE
Also I have list of alphabets with equivalant value like below
A = 3
B = 7
C = 1
H = 12
........
........
Z = 22
My question: If the reminder matches one of the above list , for example reminder from the above calculation
is 12. So it matches with H = 12. So If H is the last letter of 304528929GH, then the user input is right.
In Short: HOW DO I GET THE LAST LETTER (ex. 'H' in the above case) From the textbox and check with alphabatical list listed above
advance thanks