程序代码:
Close DataBases All Local abj[4],akm[3],atj[8],x[4] * 班级 abj[1]=1701 abj[2]=1702 abj[3]=1703 abj[4]=1704 * 科目 akm[1]="Ywnjmc" akm[2]="Sxnjmc" akm[3]="Yynjmc" * 条件 atj[1]="For bjs=abj[j] And &akm[i]> 0 And &akm[i]<=10" atj[2]="For bjs=abj[j] And &akm[i]>10 And &akm[i]<=50" atj[3]="For bjs=abj[j] And &akm[i]>50 And &akm[i]<=100" atj[4]="For bjs=abj[j] And &akm[i]>100 And &akm[i]<=200" atj[5]="For bjs=abj[j] And &akm[i]>200 And &akm[i]<=600" atj[6]="For bjs=abj[j] And &akm[i]>600 And &akm[i]<=1000" atj[7]="For bjs=abj[j] And &akm[i]>1000 And &akm[i]<=1600" atj[8]="For bjs=abj[j] And &akm[i]>1600 And &akm[i]<=2400" Create Cursor jfb (Km C(10),B1701 N(6),B1702 N(6),B1703 N(6),B1704 N(6)) && 将积分表的结构做了调整 Use g1 In 0 Select g1 For i=1 To Alen(akm,1) For i1=1 To Alen(atj,1) For j=1 To Alen(abj,1) Count &atj[i1] To x[j] EndFor Insert Into jfb Values (left(akm[i],2)+str(i1,1),x[1],x[2],x[3],x[4]) X=0 EndFor EndFor Select jfb browse
效果图
坚守VFP最后的阵地