sum纵向求和
各位大侠,我用sum [字段名] to x在vfp6.0里纵向求和 结果显示在界面上,
现在我想把结果显示在excel或word上
怎么实现,谢谢!
2013-09-18 15:16
sele sum(字段名) 字段名 from 表 into curs temp copy to 文件名 type xls
2013-09-18 15:46

2013-09-18 17:53
2013-09-18 17:59

2013-09-18 19:21
2013-09-18 20:12
2013-09-18 22:47
程序代码:CLOSE TABLES USE 表 dime n(FCOUNT()) FOR i=1 TO FCOUNT() n(i)=FIELD(i) endf SELECT SUM(&n(1).) &n(1).,SUM(&n(2).) &n(2).,...SUM(&n(40).) &n(40). FROM 表 into curs temp copy to 文件名 type xls
2013-09-19 00:29
2013-09-19 13:35
2013-09-19 14:58