We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Trim a string

Thread ID:

Created:

Updated:

Platform:

Replies:

2112 Dec 17,2002 06:19 AM Dec 17,2002 12:16 PM Windows Forms 2
loading
Tags: FAQ
Peter
Asked On December 17, 2002 06:19 AM

s=s.Trim(..) will trim both the beg and the end Is there an easy way to Trim the whole string and especially the middle. Let's say I want to trim all the "'" characters off the string: "Let's say, your's idea"

Administrator [Syncfusion]
Replied On December 17, 2002 06:39 AM

Maybe you can use the split-method....

Shardool Karnik
Replied On December 17, 2002 12:16 PM

use the replace function .... something like this ... Replace("'", "") .... . - dooL > s=s.Trim(..) will trim both the beg and the end > > Is there an easy way to Trim the whole string and especially the middle. > Let's say I want to trim all the "'" characters off the string: "Let's say, your's idea" > > >

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;