> Can anyone tell me how to use string function Trim in C#?

The thing to remember is that string are immutable in C#/ .Net, so
calling Trim against one doesn't change THAT string, it returns a NEW
string... you want this:

string foo = "Blah   ";
foo = foo.Trim();

--
"Your lack of planning DOES constitute an emergency on my part... so
PLAN BETTER! "

Marc C. Brooks
http://musingmarc.blogspot.com

===================================
This list is hosted by DevelopMentor�  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to