Foxtable(狐表)用户栏目专家坐堂 → 格式判断


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

主题:格式判断

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


加好友 发短信
等级:超级版主 帖子:112364 积分:572076 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/12/14 21:57:00 [显示全部帖子]

放到datacolchanging事件

If e.DataCol.name = “流量” Then
    If e.NewValue IsNot Nothing Then
        Dim n As String = e.NewValue
        Dim m As Double
        If Double.TryParse(n,m) = False Then
 e.cancel = true
            MessageBox.show("无效格式!")
            
        End If
    End If
End If

 回到顶部