Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Trailing Spaces with C#

Status
Not open for further replies.

NeilV

Programmer
Oct 14, 2002
117
GB
Hi,

I'm trying to remove some trailing spaces from a string in a C# program. As i'm a C# newbie and confident in VB i tried using RTrim but it doesn't work, does C# have an equivalent function??

Cheers,

Neil
 
String.Trim()

should work for you.
penny1.gif
penny1.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top