Trim a string

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"

2 Replies

AD Administrator Syncfusion Team December 17, 2002 11:39 AM UTC

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


SK Shardool Karnik 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" > > >

Loader.
Up arrow icon