以文本方式查看主题

-  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=85252)

--  作者:huhu
--  发布时间:2016/5/21 13:57:00
--  [求助]前后台数据删除同步
前台数据删除了,是不是后台数据也同步删除了?下面代码是不是重复?
        Dim drrs As List(of DataRow) = DataTables("扫描配货明细").Select("生产订单号码工单行号 = \'" & gdhhh.text & "\'")
        Dim drs As List(of DataRow) = DataTables("扫描配货明细").SQLSelect("生产订单号码工单行号 = \'" & gdhhh.text & "\'")
        If drrs.count > 0 Then
            For Each drr As DataRow In drrs
                drr.Delete
            Next
        End If
        If drs.count > 0 Then
            For Each dr As DataRow In drs
                dr.Delete
            Next
        End If

--  作者:Hyphen
--  发布时间:2016/5/21 14:27:00
--  
2楼正解
--  作者:大红袍
--  发布时间:2016/5/22 12:22:00
--  

前台只需要remov掉即可。

 

看看 http://www.foxtable.com/help/topics/2899.htm