Dim t1 As Date = Date.Now DataTables("拆分效果").StopRedraw DataTables("拆分效果").datarows.Clear For Each dr As DataRow In DataTables("原始数据").DataRows For Each s As String In dr("拆分列").Replace("///","@").Split("@") Dim adr As DataRow = DataTables("拆分效果").AddNew adr("班级") = dr("班级") adr("拆分列") = s Next Next DataTables("拆分效果").ResumeRedraw MessageBox.Show("计算结束, 耗时: " & (Date.Now - t1).TotalSeconds & "秒")
|