Home All Groups Group Topic Archive Search About
Author
3 Aug 2006 2:50 PM
Seema Multani
I have a string "56789916" I want to replace last digit of this string from
6 to 0.  i.e "56789910".  How can I do that.

Thanks in advance

Author
3 Aug 2006 3:40 PM
IdleBrain
Hello Seema,
Easiest solution if you donot want to convert the string back to int
is:

str = str.Remove(str.Length - 1, 1) & "0"

Hope it helps