以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  执行时出现:错误代码If e.DataCol.Name="项目名称" Then  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=17001)

--  作者:jnbd169
--  发布时间:2012/2/29 22:26:00
--  执行时出现:错误代码If e.DataCol.Name="项目名称" Then

If e.DataCol.Name="项目名称" Then
    If e.DataRow.IsNullTables("项目名称")=False Then
        If e.DataRow.GetCildRows("汇总2").Count= 0 Then
            Dim dr As DataRow=DataTables("汇总2").Addnew
             dr("项目名称")= e.NewValue
         End If
     End If
 End If

 

执行时出现:错误代码If e.DataCol.Name="项目名称" Then


--  作者:狐狸爸爸
--  发布时间:2012/2/29 22:30:00
--  

这行代码似乎不对的:

 

If e.DataRow.IsNullTables("项目名称")=False Then