Foxtable(狐表)用户栏目专家坐堂 → 血压的数值怎么表示


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

主题:血压的数值怎么表示

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/4/21 11:29:00 [显示全部帖子]

 用字符列存放你输入的值。

 

 DataColChanged事件写代码

 

If e.DataCol.name = "第八列" Then
    Dim str As String = e.DataRow("第八列")
    Dim mc = System.Text.RegularExpressions.Regex.Matches(str,"[0-9.]+")
    If mc.count = 2 Then
        If mc(0).value > 140 OrElse mc(1).value > 90 Then
            e.DataRow("第九列") = "高血压"
        Else
            e.DataRow("第九列") = Nothing
        End If
    Else
        e.DataRow("第九列") = Nothing
    End If
End If


 回到顶部