Foxtable(狐表)用户栏目专家坐堂 → 请教空行


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

主题:请教空行

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/24 21:09:00 [显示全部帖子]

 1、

 

Dim dt As DataTable = DataTables("表A")
For Each dr As DataRow In dt.datarows
    Dim flag As Boolean = True
    For Each dc As DataCol In dt.datacols
        If dr.IsNull(dc.name) = False Then
            flag = False
        ElseIf flag = False Then
            msgbox(dr("_Identify") & "行" & dc.name & "为空")
            Return ""
        End If
    Next
Next

 

 2、

 

Dim dt As DataTable = DataTables("表A")
Dim idxs As String = "-1,"

For Each dr As DataRow In dt.datarows
    Dim flag As Boolean = True
    For Each dc As DataCol In dt.datacols
        If dr.IsNull(dc.name) = False Then
            flag = False
        End If
    Next
    If flag Then
        idxs &= dr("_Identify") & ","
    End If
Next
dt.DeleteFor("_Identify in (" & idxs.trim(",") & ")")


 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/24 21:59:00 [显示全部帖子]

 不可以。

 回到顶部