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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trim a string

Thread ID:

Created:

Updated:

Platform:

Replies:

2112 Dec 17,2002 11:19 AM UTC Dec 17,2002 05:16 PM UTC WinForms 2
loading
Tags: FAQ
Peter
Asked On December 17, 2002 11:19 AM UTC

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 11:39 AM UTC

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

Shardool Karnik
Replied On December 17, 2002 05:16 PM UTC

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.

Warning Icon 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.Close Icon

;