Re: String Concatenation & Removing Space

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Based on your original post I would try somthing like...

ds.Tables("DataTable").Rows(i)("RevisionString") += RTrim(strRevision) & a &
","

I don't know vb.net soo that code is a guess.

Personally I'd do a standard trim, because your rtrim will only trimming
trailing spaces.

"Sparky Arbuckle" <twa@xxxxxxxxxxxxxx> wrote in message
news:1125610265.854051.242570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thanks for the trim suggestions. I copied & pasted Clamps' code sample
> and the end result wasn't what I expected.
>
> Before: A 1,A 2,A 3,A 4,A 5,
> After: 1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,1,1,2,1,1,2,3,1,1,2,1,1,2,3,4,5,
>
> Am I doing something wrong here?
>


.