G
Guest
Hi ,
I want to convert each letter in a string to it's ascii character.
I have tried using System.Convert.ToInt32(C)
where c is the substring character from the main string.
When I use this syntax I get a message string input format incorrect.But when issue the same syntax in the immediate window like System.Convert.ToInt32('A'),it returns the correct ascii value 65.I am not sure if I miss something .
Can some please let me know how to convert a char value to ASCII number.
Thanks
GP
I want to convert each letter in a string to it's ascii character.
I have tried using System.Convert.ToInt32(C)
where c is the substring character from the main string.
When I use this syntax I get a message string input format incorrect.But when issue the same syntax in the immediate window like System.Convert.ToInt32('A'),it returns the correct ascii value 65.I am not sure if I miss something .
Can some please let me know how to convert a char value to ASCII number.
Thanks
GP