Convert the character into ASCII value and vice verse
& Convert the ascii value to character
My goal is to achieve the increment between the letters like A to B, B to C, C to D
So i choose go with following PSEUDO CODE
Here you go, for the code
Convert.ToChar(System.Text.Encoding.ASCII.GetBytes(Convert.ToChar(strGivenCharacter)(0) + 1)
Mission Accompolished... :)
& Convert the ascii value to character
My goal is to achieve the increment between the letters like A to B, B to C, C to D
So i choose go with following PSEUDO CODE
- Convert Char of the given string ( Say 'A' in this case)
- Convert the char to ASCII value ( A to 65)
- Increment the ASCII value by 1 ( 65 + 1 = 66)
- Convert the ASCII value to character (66 to B)
Here you go, for the code
Convert.ToChar(System.Text.Encoding.ASCII.GetBytes(Convert.ToChar(strGivenCharacter)(0) + 1)
Mission Accompolished... :)