'假設dt1已有資料,宣告新的dt2
Dim dt2 As DataTable


'復製dt1的結構
dt2 = dt1.Clone


'從第一筆開始填入dt2
Dim x As Integer
For x = 0 To dt1.Rows.Count
    dt2.ImportRow(dt1.Rows(x))
Next

文章標籤
全站熱搜
創作者介紹
創作者 pdyurfof 的頭像
pdyurfof

夏天的雙重性格

pdyurfof 發表在 痞客邦 留言(0) 人氣(209)