Foxtable(狐表)用户栏目专家坐堂 → CurrentChanged


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

主题:CurrentChanged

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


加好友 发短信
等级:四尾狐 帖子:858 积分:6381 威望:0 精华:0 注册:2017/2/13 9:04:00
CurrentChanged  发帖心情 Post By:2018/11/19 9:34:00 [只看该作者]

table2新增行,为什么不能即刻显示对应table1到货单据号的行,要点一下窗口table表1,table2的行才显示

CurrentChanged:

If Forms("到货物检").Opened()
    Dim t As Table = Tables("到货物检_table2")

    Dim d As Table = Tables("到货物检_table1")    

        If d.Current Is Nothing Then
            t.Filter = "False"

        Else
            t.Filter = "到货单据号 = '" & d.Current("到货单据号") & "' "
                        
        End If

End If


新增行:
Dim tbl As Table = Tables("选择采购订单_Table1")
Dim tbl2 As Table = Tables("到货物检_Table2")
Dim tbl1 As Table = Tables("到货物检_Table1")
For  i As Integer=tbl.BottomPosition To tbl.TopPosition Step -1
    Dim dr As Row =  tbl2.AddNew
    dr("到货单据号")=tbl1.current("到货单据号")
Next


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/11/19 9:37:00 [只看该作者]

加上触发currentChanged的代码,如

 

http://www.foxtable.com/webhelp/scr/2367.htm

 


 回到顶部