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