Foxtable(狐表)用户栏目专家坐堂 → [求助]函数isnull问题


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

主题:[求助]函数isnull问题

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


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

If e.DataCol.name="文件前缀" OrElse e.DataCol.name="年号" Then
    Dim dr As DataRow=e.DataRow
    If dr.Isnull("文号前缀") OrElse dr.IsNull("年号") Then
        MessageBox.Show("文号前缀和文件年号不能为空值!", "提示")
        e.Cancel = True
       
    Else
        Dim qz As String = e.DataRow("文号前缀")
        MessageBox.show(qz)
        Dim nh As String = e.DataRow("年号")
        Dim xh As String = e.DataRow("文件序号")
        e.DataRow("文号") = qz & "【" & nh & "】" & xh & "号"
    End If   
End If

 回到顶部