以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助] 代码不对 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=165356) |
-- 作者:sanny -- 发布时间:2021/5/15 0:03:00 -- [求助] 代码不对 麻烦老师 以下错哪儿了,谢谢。 Dim drs As List(of DataRow) = DataTables("Inprd").SQLSelect("BatchNo= \'"&dr2("Batchno")&"\'",1,"PrintTime Desc") dr2("PrintingDate") =dr("PrintTime") |
-- 作者:z769036165 -- 发布时间:2021/5/15 9:04:00 -- 要进行遍历或者drs(0)("PrintTime") 这个需求直接用SQLCompute去取好的多 |
-- 作者:有点蓝 -- 发布时间:2021/5/15 9:19:00 -- Dim dr As DataRow = DataTables("Inprd").sqlfind("BatchNo= \'" & dr2("Batchno") & "\'","PrintTime Desc") if dr isnot nothing dr2("PrintingDate") =dr("PrintTime") end if
|