Wednesday, March 28, 2012

Substring operation

hi

I wonder of someone can help me with this Substring operation.

I have : "12.10" or "120.10"

Now I want to convert these values to : "1210" or "12010"

Basically, I want to removce the dot within my strings. How can I do this.?

Thanks

string text = "12.10";

text = text.Replace(".", "");

0 comments:

Post a Comment