|
楼主 |
发表于 2018-5-5 15:45
|
显示全部楼层
本帖最后由 xgczwp 于 2018-5-5 16:01 编辑
改为这样吗 这样改了后,调试有问题
classname = CStr(arr(myindex, 3)) total(1) = Val(CN_dic(classname))
If Len(basic(temprow + 1, class_column)) = 0 Then basic(temprow + 1, class_column) = T_dic(subject & classname)
If total_rank <= total(1) Then
temp(1, class_column) = temp(1, class_column) + 1
temp(2, class_column) = temp(2, class_column) + myscore
total(2) = total(2) + myscore
If myscore >= P_dic(subject & "优分") Then basic(temprow + 2, class_column) = basic(temprow + 2, class_column) + 1: basic(temprow + 2, classcount + 3) = basic(temprow + 2, classcount + 3) + 1
If myscore >= P_dic(subject & "及格") Then basic(temprow + 5, class_column) = basic(temprow + 5, class_column) + 1: basic(temprow + 5, classcount + 3) = basic(temprow + 5, classcount + 3) + 1
basic(temprow + 3, class_column) = Round(basic(temprow + 2, class_column) / temp(1, class_column) * 100, 2)
basic(temprow + 6, class_column) = Round(basic(temprow + 5, class_column) / temp(1, class_column) * 100, 2)
basic(temprow + 8, class_column) = Round(temp(2, class_column) / temp(1, class_column), 2)
basic(temprow + 3, classcount + 3) = Round(basic(temprow + 2, classcount + 3) / total(1) * 100, 2)
basic(temprow + 6, classcount + 3) = Round(basic(temprow + 5, classcount + 3) / total(1) * 100, 2)
basic(temprow + 8, classcount + 3) = Round(total(2) / total(1), 2)
End If
|
|