Foxtable(狐表)用户栏目专家坐堂 → 从字符串""到“double“的转换无效,这是什么错误


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

主题:从字符串""到“double“的转换无效,这是什么错误

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


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

直接这样写

 

If e.DataCol.Name = "结果" AndAlso e.DataRow.isnull("工号") = False Then
   
    Dim dr As DataRow =DataTables("总库").Find("工号 = '" & e.DataRow("工号") & "'")
   
    If dr IsNot Nothing Then
       
        If e.NewValue = "离职" Then
           
            dr("状态")="离职"
           
        Else If e.NewValue = "病假" Then
           
            dr("学籍状态")="病假"
           
        Else If e.NewValue = "调动" Then
           
            dr("部门") = e.DataRow("部门")
           
        End If
       
    End If
   
End If

 


 回到顶部