以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  数字格式列的比较不起作用?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=154567)

--  作者:edisontsui
--  发布时间:2020/9/18 15:28:00
--  数字格式列的比较不起作用?
If e.DataRow("每条单弧数") > Nothing AndAlso e.DataRow("每条双弧数") > Nothing
    Dim dr As DataRow = DataTables("直身开料单").Find("生产票号 = \'" & e.DataRow("生产票号一") & "\' and 型号 = \'" &  e.DataRow("物料编号") & "\' and 铣端头or打毛刺 = \'" & e.DataRow("铣端头") & "\' and 订单号 = \'" &  e.DataRow("订单号")  & "\' and 单条单弧 = \'" & e.DataRow("每条单弧数") & "\' and 单条双弧 = \'" & e.DataRow("每条双弧数") & "\'")
    e.DataRow("长度") = dr("长度")
    e.DataRow("插接口位置度A") = dr("插接口位置度A")
    e.DataRow("插接口位置度B") = dr("插接口位置度B")
    e.DataRow("插接口位置度C") = dr("插接口位置度C")
End If

上述代码起不了作用,其中“每条单弧数”、“每条双弧数”、“单条双弧”、“单条单弧” 都是整数格式的数据列,我怀疑数字格式数据列不能拿来进行比较。不知道是否还有其他原因?谢谢。

--  作者:有点蓝
--  发布时间:2020/9/18 15:31:00
--  
http://www.foxtable.com/webhelp/topics/0426.htm