N
Nicholas Paldino [.NET/C# MVP]
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.
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.