Foxtable(狐表)用户栏目专家坐堂 → [求助]根据标准划分等级问题


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

主题:[求助]根据标准划分等级问题

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


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33963 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2009/3/30 18:24:00 [显示全部帖子]

Dim ColNames() As String = {"语文","数学","英语","物理","化学","总分"}
Dim dt2 As DataTable = DataTables("优分线")
Dim dr As DataRow
For Each Name As String In ColNames
    For Each dr1 As DataRow In DataTables("成绩分析").DataRows
        dr = dt2.Find("[月份] = '" & dr1("月份") & "' And [科目] = '" & Name & "'")
        If dr IsNot Nothing Then
            dr1(Name.SubString(0,1) & "优") = iif(dr1(Name)>=dr("A优线"),"A",iif(dr1(Name)>=dr("B1优线"),"B1",iif(dr1(Name)>=dr("B2优线"),"B2",iif(dr1(Name)>=dr("C优线"),"C",""))))
        End If
    Next
Next

[本帖被加为精华]
 回到顶部