Foxtable(狐表)用户栏目专家坐堂 → 如行判断空行


  共有2035人关注过本帖树形打印复制链接

主题:如行判断空行

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109736 积分:558396 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/11/3 17:36:00 [显示全部帖子]

Dim all As Boolean = True
For Each dr As DataRow In DataTables("表A").DataRows
    Dim rll As Boolean = True
    For Each c As DataCol In DataTables("表A").DataCols
        If c.Name.StartsWith("_") = False 
            If (c.IsBoolean = False And  not dr.IsNull(c.Name)) OrElse (c.IsBoolean  AndAlso dr(c.Name) = True)
                rll = False
                Exit For
            End If
        End If
    Next
    If rll Then
        Output.Show("空行,ID" & dr("_Identify"))
    Else
        all = False
    End If
Next

If all Then
    Output.Show("空表")
End If

 回到顶部