Foxtable(狐表)用户栏目专家坐堂 → 添加控件


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

主题:添加控件

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


加好友 发短信
等级:九尾狐 帖子:2234 积分:15278 威望:0 精华:0 注册:2015/7/18 10:10:00
  发帖心情 Post By:2015/10/16 14:29:00 [只看该作者]

If Typeof e.sender Is winform.Button Then
    Dim dr As DataRow = DataTables("高级筛选").find("筛选名称= '" & e.sender.Name & "'")
    If dr IsNot Nothing Then
        Functions.remove("函数")
        Dim Code As String
        'code = "Dim tab As winform.tabcontrol = e.Form.controls("tabcontrol1")" & vbcrlf
        code = code &  "If tab.tapages(e.sender.Name) IsNot Nothing Then" & vbcrlf
        code = code & "tab.selectedpage = tab.tabpages(e.sender.Name)
        code = code &  "Else" & vbcrlf
        code = code & "tab.TabPages.add(e.sender.Name,e.sender.Name)" & vbcrlf
        'code = code & "Tables("高级筛选_& e.sender.Name").filter=" & vbcrlf
        'Code = code & " dr("筛选条件") " & vbcrlf
        Functions.Add("函数",Code)
        Functions.Complie()
        Functions.Execute("函数")
    End If
End If

 

上述不能保存,只注释了部分才能保存


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