Foxtable(狐表)用户栏目专家坐堂 → 代码问题?


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

主题:代码问题?

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


加好友 发短信
等级:小狐 帖子:376 积分:4189 威望:0 精华:0 注册:2008/9/1 14:18:00
代码问题?  发帖心情 Post By:2012/11/12 14:48:00 [显示全部帖子]

 

  CurrentTable.DefaultRowHeight = 25

    CurrentTable.AutoSizeCols()

    If CurrentTable.HeaderRows = 0 Then

        CurrentTable.SetHeaderRowHeight(25)

    ElseIf CurrentTable.HeaderRows = 1 Then

        CurrentTable.SetHeaderRowHeight(25,25)

    End If

   

    Dim btms() As String = {"A级标题","B级标题","C级标题"}

    Dim zdm As String

    For Each dc As DataCol In DataTables("中小学工作").DataCols

        zdm = ""

        Dim dr As DataRow = DataTables("字段标题").Find("[对应字段] = '" & dc.name & "'")

        If dr IsNot Nothing Then

            For Each btm As String In btms

                If dr.Isnull(btm) = False Then

                    If zdm > "" Then

                        zdm = zdm & "_"

                    End If

                    zdm = zdm & dr(btm)

                End If

            Next

        End If

        DataTables("中小学工作").DataCols(dc.name).Caption = zdm

        DataTables("中小学工作").BuildHeader()

    Next

    CurrentTable.Cols("dw").Width = 70


 回到顶部