如何将vfp查询的结果逐行写入word文档中
如何将vfp查询的结果逐行写入word文档中,一个人一行,望高手赐教。万分感谢!!!
scgrkb.rar
(46.15 KB)
[此贴子已经被作者于2020-3-18 21:56编辑过]
[此贴子已经被作者于2020-3-18 21:56编辑过]
[此贴子已经被作者于2020-3-19 12:00编辑过]
CLEAR CREATE CURSOR kbtmp (jsmc c(10),skcs i,rw c(254)) &&如果内容太多可用CREATE CURSOR kb (xm c(10),skcs i,rw m) *APPEND BLANK SELECT jsmd GOTO top rkmc="" SCAN cxm=ALLTRIM(xm) iskcs=0&&上课次数 * ?cxm, rkmc=cxm+"," SELECT jsrkb GOTO top SCAN FOR i=1 TO 18 m=FIELD(i) xm2= &m. IF ALLTRIM(xm2)==cxm &&不用== alltr()意义不太 rkmc=rkmc+FIELD(i)+nj+bj+',' iskcs=iskcs+1 ENDIF NEXT i ENDSCAN * ?rkmc * WAIT SELECT kbtmp APPEND BLANK REPLACE jsmc WITH cxm,skcs WITH iskcs,rw WITH rkmc SELECT jsmd ENDSCAN
[此贴子已经被作者于2020-3-19 13:24编辑过]