以文本方式查看主题

-  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=180962)

--  作者:Cloud
--  发布时间:2022/10/20 13:35:00
--  [求助]判断单元 格中值为空并删除行
大师请指点一下:
下面这段代码是在表B的第一列中找出值为空的行并删除,但不能执行,希望能帮我改一下代码:
Dim Names As New List(Of String)
Dim s1 As String
For Each c As Col In Tables("表B").Cols
    If c.name.StartsWith("第一列") Then
        For Each r As Row  In Tables("表B").Rows
            If r(c.name) = "" Then
                r.DataRow.Delete()
            End If
        Next
    End If
Next
谢谢

--  作者:有点蓝
--  发布时间:2022/10/20 13:42:00
--  
帮助搜索“空值”,看看是怎么处理空值的