以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  相比较输入  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=162935)

--  作者:a272797388
--  发布时间:2021/4/17 17:27:00
--  相比较输入

如果第一列的值为空,并且第二列和第三列的值都带“汤原县*”字符, 那么第四列的值为“完毕”。 请问如何实现?

 

 

If e.DataCol.Name = "第一列" Then
    If e.DataRow.IsNull("第一列") Then \'
        e.DataRow("第三列") = Nothing
    Else
       If e.DataRow("第一列") isnull and e.DateRow("第二列") Like "汤原县*" and e.DateRow("第三列") Like "汤原县*"             
            e.DataRow("第四列") = "完毕"
                End If
    End If
End If


--  作者:有点蓝
--  发布时间:2021/4/17 17:40:00
--  
If e.DataCol.Name = "第一列" orelse e.DataCol.Name = "第二列" orelse e.DataCol.Name = "第三列" Then
       If e.DataRow.isnull("第一列") andalso e.DateRow("第二列") Like "汤原县*" andalso e.DateRow("第三列") Like "汤原县*"             
            e.DataRow("第四列") = "完毕"
else
e.DataRow("第四列") = nothing
       End If

End If

--  作者:a272797388
--  发布时间:2021/4/17 20:01:00
--  如果第一列不为空值
If e.DataCol.Name = "第一列" orelse e.DataCol.Name = "第二列" orelse e.DataCol.Name = "第三列" Then
      
 If e.DataRow.isnull("第一列") andalso e.DateRow("第二列") Like "汤原县*" andalso e.DateRow("第三列") Like "汤原县*"             
            e.DataRow("第四列") = "完毕"
else
e.DataRow("第四列") = nothing
       End If

End If
 
 
请问如果第一列不为空值 这个地方如何改?
If e.DataRow.isnull("第一列") andalso

--  作者:a272797388
--  发布时间:2021/4/18 1:02:00
--  请问为什么会出现错误

图片点击可在新窗口打开查看此主题相关图片如下:99.jpg
图片点击可在新窗口打开查看

--  作者:有点蓝
--  发布时间:2021/4/18 21:01:00
--  
请问如果第一列不为空值 这个地方如何改?
If e.DataRow.isnull("第一列") = false andalso

e.DateRow("第二列") 
改为
e.DataRow("第二列")