字符串构建器在vb.net中附加格式

时间:2012-12-24 12:04:30

标签: datatable stringbuilder

让字符串构建器从数据表中接收值。 datatable包含名为的列 作为ename并包含像

这样的值
abc
abc
abc

in stringbuilder stored this value in the following format abcabcabc.

code

 Do While (i < dt.Rows.Count)

        sb.Append(dt.Rows(i)("ename").ToString)
                   i = (i + 1)
   Loop

Expected output abc,abc,abc .how to do this?

0 个答案:

没有答案