没错,1295只是巧合而已,可以增删一些数据试试。不过我更喜欢用以下代码
Dim lst As New List(Of String)
For Each dr As DataRow In DataTables("表A").Datarows
lst.AddRange(dr.Lines("第一列"))
Next
'Output.Show (lst.Distinct.Count)
DataTables("多值列拆分成单行").DataRows.Clear
DataTables("多值列拆分成单行").StopRedraw
For Each s As String In lst.Distinct
Dim dr As DataRow = DataTables("多值列拆分成单行").AddNew
dr("第二列") = s
Next
DataTables("多值列拆分成单行").ResumeRedraw