以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何获取克隆行  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=184444)

--  作者:moseser
--  发布时间:2022/12/7 16:39:00
--  [求助]如何获取克隆行
Dim drs As List(Of DataRow) = DataTables("表A").Select("第五列 = \'北京\'")
For Each dr As DataRow In drs
    dr.Clone
    
   克隆行(”第五列“) = "上海"
Next 


请问,这里的克隆行,如何获取?

--  作者:有点蓝
--  发布时间:2022/12/7 17:02:00
--  
Dim dr2 As DataRow = dr.Clone
dr2 (”第五列“) = "上海"