Calros,
If you want to add a number, then you can use the static ToInt32 method
on the Convert class to convert your string to an integer. Then, you can
just perform your arithmetic.
When you want to convert it back to a string, then you can call ToString
on the int variable.
As for incrementing a letter, you can create a character array and then
increment the character by one in the array.
However, you have to have logic for when you get to the letter Z.
Then you can convert the character array back to a string.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Calros Lo" <ca********@hotmail.comwrote in message
news:uY**************@TK2MSFTNGP05.phx.gbl...
Dear all:
I develop a programe that need when I get a string , such as "123" or
"ABC",if I get string "123" and the system will help me to create new
string "124" , if I get string "ABC" and the system will help me to create
new string "ABD" , could somebody can help me how to programe it , thank
you very much.
I don't know to how to covert string as ASCII and add integer value and
covert the integer back to string, hope can support me the code I'll very
appricate, thanks.