以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 求一键删除某表某列的内容代码 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=59447) |
-- 作者:xjc620 -- 发布时间:2014/11/4 15:26:00 -- 求一键删除某表某列的内容代码 求一键删除某表某列的内容代码,是删除录入的内容,增加的行不能删除 |
-- 作者:有点甜 -- 发布时间:2014/11/4 15:29:00 -- For Each dr As DataRow In DataTables("表A").DataRows If dr.RowState <> DataRowState.Added Then dr("第一列") = Nothing End If Next |
-- 作者:Bin -- 发布时间:2014/11/4 15:31:00 -- 方法1 DataTables(X).SQLReplaceFor("列名","") DataTables(X).Load 方法2 For Each dr As DataRow In DataTables("X").datarows If dr.RowState <> DataRowState.Added Then dr("列名")="" End If Next |