Or, if .Length == 1, why not just .Replace(",", "") ... ?

But that said, I'm guessing there's a fairly simple algorithmic flaw
underlying this problem ...

∞ Andy Badera
∞ +1 518-641-1280
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=andrew%20badera



On Wed, Oct 14, 2009 at 3:20 AM, Vitaly Maslevskiy
<[email protected]> wrote:
>
> I would agree with Raghupathi Kamuni add commas when you need it
>
> If it is not solution for you then add comma before entry like
>
>  foreach (StringHolder shEntry in ACVMEntries)
>      {
>         <skiped>
>           StringBuilder.Append(",").Append(shEntry.shOldIDNumber);
>     }  // of foreach
>
>     // Remove extraneous comma at the end of each StringBuilder.
>     ...
> if (StringBuilder.Length>0)
>    StringBuilder.Remove(0,1); //remove first char if stringbuilder
> has some entries
>
>
>
>
>
> 2009/10/14 Raghupathi Kamuni <[email protected]>
>>
>> Append comma (quote) only when required. Avoid removing them.
>>
>> On Wed, Oct 14, 2009 at 6:25 AM, Benj Nunez <[email protected]> wrote:
>>>
>>> Hello everyone,
>>>
>>> I'm stumped at the moment trying to figure out how to remove a quote
>>> (",") character from a single entry within a Stringbuilder object. I
>>> have code that looks like this:
>

Reply via email to