Foxtable(狐表)用户栏目专家坐堂 → [求助]还是代码简化


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

主题:[求助]还是代码简化

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


加好友 发短信
等级:超级版主 帖子:110738 积分:563610 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/2/22 22:40:00 [显示全部帖子]

Dim dtb As New DataTableBuilder("总分2018级有效分")
Dim lm1s() As String = {"序号","部别","年级","科目","参考人数","平均分","标准差"}
    For Each lm1 As String In lm1s
        dtb.AddDef( lm1 ,Gettype(String),8)
    Next
Dim dhs() As String = {"重点A","本科A","专科A"}
Dim lm3s() As String = {"平均分","标准差","平均分之和","标准差之和","目标","重点线","有效分"}
For Each dh As String In dhs
    For i As Integer = 0 To lm3s.length - 1
        dtb.AddDef( dh & (i+1) ,Gettype(Double),"", dh & "及以上_" & lm3s(i))
    Next
Next
dtb.Build()

 回到顶部