Foxtable(狐表)用户栏目专家坐堂 → 全局表事件的奇怪问题


  共有1749人关注过本帖平板打印复制链接

主题:全局表事件的奇怪问题

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


加好友 发短信
等级:一尾狐 帖子:457 积分:3523 威望:0 精华:0 注册:2016/1/22 18:17:00
全局表事件的奇怪问题  发帖心情 Post By:2016/3/21 11:22:00 [只看该作者]

'Functions.Execute("副本表定位行",tb)
Dim tb As Table = Args(0)
If tb.Current IsNot Nothing Then
    Dim strTableName As String = tb.DataTable.name
    Dim wz As Integer
    Dim dr As DataRow
    dr = DataTables(strTableName).Find("[_Identify] = " & tb.Current("_Identify"))
    If dr IsNot Nothing Then
        wz = Tables(strTableName).FindRow(dr)
        If wz >= 0 Then
            Tables(strTableName).Position = wz
        End If
    End If
End If

在窗口副本表的 CurrentChanged 事件 中 Functions.Execute("副本表定位行",CurrentTable) 这里测试运行流畅

在项目事件 的全局表事件的 CurrentChanged 事件中Functions.Execute("副本表定位行",e.Table)  这里测试确运行有时比较卡

 回到顶部