Foxtable(狐表)用户栏目专家坐堂 → 各位老大再一次请教,谢谢


  共有15055人关注过本帖树形打印复制链接

主题:各位老大再一次请教,谢谢

帅哥哟,离线,有人找我吗?
雨中的泪
  11楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1432 积分:9061 威望:0 精华:0 注册:2009/8/19 8:19:00
  发帖心情 Post By:2011/7/6 16:01:00 [显示全部帖子]

 

For Each dr1 As DataRow In DataTables("补偿标准表").dataRows

    Dim nms() As String = {"土地类","房屋类"}

    For Each nm As String In nms

        For Each dr2 As DataRow In DataTables(nm).DataRows

             If dr1("补偿标准代码") = dr2("补偿标准代码") then

                dr1("补偿标准使用情况")  = True

else

dr1("补偿标准使用情况")  = False

                Exit For

            End If

        Next

        If dr1("补偿标准使用情况")  = True Then

            Exit For

        End If

    Next

Next

 

For Each dr1 As DataRow In DataTables("项目").dataRows

    Dim nms() As String = {"土地类","房屋类"}

    For Each nm As String In nms

        For Each dr2 As DataRow In DataTables(nm).DataRows

             If dr1("项目代码") = dr2("项目代码")

                dr1("项目代码使用情况")  = True

else

dr1("项目代码使用情况")  = False

                Exit For

            End If

        Next

        If dr1("项目代码使用情况")  = True Then

            Exit For

        End If

    Next

Next


 回到顶部
帅哥哟,离线,有人找我吗?
雨中的泪
  12楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1432 积分:9061 威望:0 精华:0 注册:2009/8/19 8:19:00
  发帖心情 Post By:2011/7/6 16:01:00 [显示全部帖子]

这样改不行呀

 回到顶部
帅哥哟,离线,有人找我吗?
雨中的泪
  13楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1432 积分:9061 威望:0 精华:0 注册:2009/8/19 8:19:00
  发帖心情 Post By:2011/7/6 16:13:00 [显示全部帖子]

就没有想到先清空逻辑列在判断!!!

有时就是转不过弯来

谢谢 老大


 回到顶部
总数 14 上一页 1 2