trying to use a StringBuilder and it is not working out. I need to create a string that is 418 characters long for writing a flat file for input into another application. Here is the start of my loop, but as soon as I get to the second string builder insert, I get an arguement out of range exception.
...
For Each drCurrentData In dtCISToPMXVendorData.Rows
strbuildOutput = New System.Text.StringBuilder(418, 418)
strbuildOutput.Insert(0, drCurrentData.Item("ActionCode"))
strbuildOutput.Insert(15, drCurrentData.Item("CG_VEND_NBR"))
strbuildOutput.Insert(25, drCurrentData.Item("VEND_NAME"))
...
