Foxtable(狐表)用户栏目专家坐堂 → 求一个代码的写法


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

主题:求一个代码的写法

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/4/15 14:00:00 [只看该作者]

If Forms("窗口").Opened Then
    Dim lb2 As WinForm.Label = Forms("窗口").Controls("当前操作表")
    Dim Str2 As String
    Dim tab As WinForm.TabControl = forms("窗口").controls("TabControl2")
    For  Each c  As WinForm.Control  In tab.SelectedPage.Children
        If Typeof c Is winform.Table Then
            Dim tw  As WinForm.Table = c
            str2 = "正操作表名为:" & "【" & tw.Name & "】" & "  总行数:"
            Exit For
        Else
            str2 = "当前窗口没有表"
        End If
    Next
    lb2.text = str2
End If


 回到顶部
总数 43 1 2 3 4 5 下一页