Hi, I have a Char data type, how do I convert it to integer, increment it, then store the output back as Char variable?
e.g. ‘A’ + 1 = ‘B’, return ‘B’
via converting char to the equivalent index in ASCII
Hi, I have a Char data type, how do I convert it to integer, increment it, then store the output back as Char variable?
e.g. ‘A’ + 1 = ‘B’, return ‘B’
via converting char to the equivalent index in ASCII
Can you try this, it should work.
char c = 'A';
int i = Convert.ToInt32(c);
i = i + 1;
c = Convert.ToChar(i);
Thanks,
Rammohan B.
Can u use the below expression ,
to convert the the alphabet to ASC equivalent
Asc(char)
and then to convert the int value to char
chr(intvalue)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.