Remove a string in string
Hi everybody,I have a string text="-52-53-54-55-57-58-".I want to remove string "-53" to new string is "-52-54-55-57-58-".I used a function text.Remove(4,3).But error.Can you help me?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Nov 8, 2010, 3:22 AM
Suthish NairPosted Nov 9, 2010, 12:20 AM
toanhoi buiPosted Nov 8, 2010, 11:48 PM
Posted Nov 7, 2010, 11:43 PM
string s = "-52-53-54-55-57-58-";
s = s.Remove(3, 3);
The above code is working...
s = "-52-54-55-57-58-".
Moreover, what is the error that you are getting....