Foxtable(狐表)用户栏目专家坐堂 → 下面代码为什么为循环呢?


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

主题:下面代码为什么为循环呢?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107783 积分:548260 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/9/20 17:36:00 [显示全部帖子]

Tables("材料")是不是又定位Tables("导入材料.导入材料明细")了,这样试试

If Forms("导入材料").Opened AndAlso Forms.ActiveForm.Name = "导入材料"  Then
    Dim dr As Row = Tables("导入材料.导入材料明细").Current
    MessageBox.show(0)
    If dr IsNot Nothing AndAlso dr.IsNull("定额编码")=False Then
        Dim i As Integer= Tables("材料").FindRow("定额编码 = '" & dr("定额编码") & "'")
        If i >= 0 Then
            MessageBox.show(1)
            SystemReady = False
            Tables("材料").Position = i
            SystemReady = True
        End If
    End If
End If

 回到顶部