回复 8楼 sdta 再次请教老师。。。。
我有一个小程序,是统计考试一分一段表,总觉得不是很优化,运行感觉有点慢,请老师帮忙看看,
...........
CREATE CURSOR ttt (zf n(6,1))
appen FROM ARRAY vvv
SELECT zf 总分,COUNT(zf) 人数,00000 累计 FROM ttt GROUP BY zf order by zf desc INTO CURSOR ttt READWRITE
i=1
scan
SUM 人数 TO a FOR RECNO()<=i
REPLACE 累计 WITH a FOR RECNO()=i
LOCATE FOR RECNO()=i
i=i+1
ENDSCAN
SET SAFETY ON
COPY TO .\导出考务文件\一分一段表 xl5
SET SAFETY OFF