以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]log第一行老是为空  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=56647)

--  作者:liujywwy
--  发布时间:2014/9/10 11:32:00
--  [求助]log第一行老是为空

SystemReady = False
If e.DataCol.Name = "状态" Then
    e.DataRow("log") = e.DataRow("log") & vbcrlf & User.Name & " " & Date.Now & " " & e.DataRow("状态")
End If
SystemReady = True


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


--  作者:有点甜
--  发布时间:2014/9/10 11:44:00
--  
If e.DataCol.Name = "状态" Then
    If e.DataRow.IsNull("Log") = False Then
        e.DataRow("log") = e.DataRow("log") & vbcrlf & User.Name & " " & Date.Now & " " & e.DataRow("状态")
    Else
        e.DataRow("log") = User.Name & " " & Date.Now & " " & e.DataRow("状态")
    End If
End If