Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口表判断空值


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

主题:[求助]窗口表判断空值

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/4/30 16:11:00 [显示全部帖子]

Dim s As String = ""
Dim t As Table = Tables("空值_Table1")
For i As Integer = 0 To t.Rows.Count -1
    Dim str As String = ""
    If t.Rows(i).IsNull("第二列") Then
        str &= t.Rows(i)("编号") & "-[第二列]为空,"
    End If
    If  t.Rows(i).IsNull("第三列") Then
        str &= t.Rows(i)("编号") & "-[第三列]为空,"
    End If
    If  t.Rows(i).IsNull("第四列") Then
        str &= t.Rows(i)("编号") & "-[第四列]为空,"
    End If
    If  t.Rows(i).IsNull("第五列") Then
        str &= t.Rows(i)("编号") & "-[第五列]为空,"
    End If
    If str > "" Then
        s &= str.Trim(",") & vbcrlf
    End If
Next
msgbox(s)

 回到顶部