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


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

主题:[求助]代码简化

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


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

Dim fhs() As String = {"德","能","勤","绩","廉"}
Dim pj2s() As String = {"好","较好","一般","差"}
Dim djs() As String = {"A","B","C","D"}
Dim dlqjs() As String = {"题号1","题号2","题号3","题号4","题号5"}
For i As Integer = 0 To fhs.length - 1
      For j As Integer = 0 To djs.length - 1
         dr(fhs(i) & djs(j) & "人") = DataTables("答案1").Compute("Count("& dr(dlqjs(i)) &")", "" & dr(dlqjs(i)) & " = '"& djs(j) &"' And [单位] = '" & dr("单位") & "'")
      Next
Next

 回到顶部