以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [原创代码问题  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=124109)

--  作者:有点甜
--  发布时间:2018/8/30 20:57:00
--  

看代码无法知道错误,做一个具体的例子发上来测试。


--  作者:有点甜
--  发布时间:2018/8/31 9:27:00
--  
If e.oldvalue <> e.NewValue AndAlso e.DataCol.Name = "JZ" AndAlso e.DataRow("JZ") = False Then
    Dim nma() As String = {"ZTBH","KMBH","KMJB","KMMC","KMLB","JDFX","LBBH"}
    Dim nmb() As String = {"ZTBH","KMBH","KMJB","KMMC","KMLB","JDFX","LBBH"}
    Systemready = False
    Dim dr As DataRow = DataTables("SJGL").AddNew
    For i As Integer = 0 To nmb.Length - 1
        dr(nma(i)) = e.DataRow(nmb(i))
    Next
    Systemready = True
End If