以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [原创]  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=149902)

--  作者:行者自在
--  发布时间:2020/5/14 23:10:00
--  [原创]
删除表中空行有没有简单点的办法
我是这样写的感觉好麻烦啊
For Each dr As DataRow In DataTables("查询结果").DataRows
    If dr.IsNull("采暖期") And dr.IsNull("应收") And dr.IsNull("核减额") And dr.IsNull("核减后应收") And dr.IsNull("实收额") And dr.IsNull("欠收费") And dr.IsNull("缴费日期") Then
        dr.Delete
    End If
Next

--  作者:有点蓝
--  发布时间:2020/5/14 23:12:00
--  
DataTables("查询结果").DeleteFor("采暖期 is null and 应收 is null and ............")
--  作者:行者自在
--  发布时间:2020/5/14 23:29:00
--  
为什么这么报错误
DataTables("查询结果").DeleteFor("采暖期 is null and 应收 is null and 核减额 is null and 核减后应收 is null 实收额 is null 欠收费 is null ")


--  作者:行者自在
--  发布时间:2020/5/14 23:34:00
--  
知道了老师自己大意了,谢谢老师