Foxtable(狐表)用户栏目专家坐堂 → 如何定位关联表的行


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

主题:如何定位关联表的行

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107649 积分:547554 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/5/4 22:51:00 [显示全部帖子]

参考:http://www.foxtable.com/webhelp/scr/2631.htm

表B的CurrentChanged事件代码设置为:

if e.Table.Current is nothing then return

Dim dr As DataRow = e.Table.Current.DataRow

if e.table.name = "表B"

Dim wz As Integer = Tables("A.表B").FindRow(dr)

If wz >=0 Then
      Tables(
"
A.表B").Position = wz

End If

else

Dim wz As Integer = Tables("表B").FindRow(dr)

If wz >=0 Then
      Tables(
"
表B").Position = wz

End If

end if


 回到顶部