首先感谢版主的指点,也许有的问题问得很幼稚,但本人刚刚接触VFP数据库,了解问题不是很多,请谅解!比如我想打印下面代码的结果,该怎样打印呢?
set talk off
select _bj
set filter to 班级=bj or 年级=bj
count to s21
sum (&km) to s22
average(&km)to s23
count for &km>=110 AND &km<=120 to c21
count for &km>=100 AND &km<110 to c22
count for &km>=90 AND &km<100 to c23
count for &km>=80 AND &km<90 to c24
count for &km>=70 AND &km<80 to c25
count for &km>=60 AND &km<70 to c26
count for &km>=50 AND &km<60 to c27
count for &km>=40 AND &km<50 to c28
count for &km>=30 AND &km<40 to c29
count for &km>=20 AND &km<30 to c30
count for &km>=10 AND &km<20 to c31
count for &km>=0 AND &km<10 to c32
count for &km>=108 AND &km<=120 to c33
count for &km>=72 AND &km<=120 to c34
count for &km>=96 AND &km<=120 to c35
count for &km>=0 AND &km<=45 to c36
t21=c33/s21*100
t22=c35/s21*100
t23=c34/s21*100
t24=c36/s21*100
set filter to
thisform.text2.value=s21
thisform.text3.value=s22
thisform.text4.value=s23
thisform.text5.value=c21
thisform.text6.value=c22
thisform.text7.value=c23
thisform.text8.value=c24
thisform.text9.value=c25
thisform.text10.value=c26
thisform.text11.value=c27
thisform.text12.value=c28
thisform.text13.value=c29
thisform.text14.value=c30
thisform.text19.value=c31
thisform.text20.value=c32
thisform.text15.value=t21
thisform.text16.value=t22
thisform.text17.value=t23
thisform.text18.value=t24
其中_bj是一个临时表,km表示课程名称