Foxtable(狐表)用户栏目专家坐堂 → [求助]请问我这个错误显示代码哪里出问题了


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

主题:[求助]请问我这个错误显示代码哪里出问题了

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


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

Select Case e.DataCol.Name
    Case "还款_已还金额"
        Dim has As Double = IIF(e.newValue=Nothing,0,e.newValue)
        Dim all As Double = IIF(e.DataRow.Isnull("借款_总金额"),0,e.DataRow("借款_总金额")  )
        If has > all  Then
            e.Cancel = True
            MessageBox.Show("还款大于借款","提示",MessageBoxButtons.OK)
        End If
    Case "借款_总金额"
        Dim all As Double = IIF(e.newValue=Nothing,0,e.newValue)
        Dim has As Double = IIF(e.DataRow.Isnull("还款_已还金额"),0,e.DataRow("还款_已还金额")  )
        If has > all  Then
            e.Cancel = True
            MessageBox.Show("还款大于借款","提示",MessageBoxButtons.OK)
        End If
End Select

 回到顶部