以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助]????? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=79874) |
-- 作者:yappana -- 发布时间:2016/1/11 15:07:00 -- [求助]????? 求助,如何把一列里的5个数字分到5个列里去,每一个咧一个数字那样? |
-- 作者:大红袍 -- 发布时间:2016/1/11 15:19:00 -- dim cs() as string = {"第一列", "第二列", "第三列", "第四列","第五列"} For Each dr As DataRow In DataTables("表A").datarows Dim ary() As String = dr("第八列").split(",") For i As Integer = 0 To ary.length - 1 dr(cs(i)) = ary(i) Next Next |