主题:[原创]小弟请教
FOR i=1 TO i1
USE hz
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) TO a(1)
?a(1)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 是否孤寡老="是" TO a(2)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 住所状况="租用" TO a(3)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 是否独生户="是" TO a(4)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND ldwk="是" TO a(5)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 户口性质="农业户" TO a(6)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 户口性质="非农户" TO a(7)
?xz(i,1), a(1),a(2),a(3),a(4),a(5),a(6),a(7),
USE sjtj
GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh
endfor
为什么GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh只在xz(1,1)的记录内填入了A,怎么实现依次按照xz(1,1),xz(2,1)...xz(i,1)在表sjtj中填入数组a的值呢
USE hz
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) TO a(1)
?a(1)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 是否孤寡老="是" TO a(2)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 住所状况="租用" TO a(3)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 是否独生户="是" TO a(4)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND ldwk="是" TO a(5)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 户口性质="农业户" TO a(6)
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) AND 户口性质="非农户" TO a(7)
?xz(i,1), a(1),a(2),a(3),a(4),a(5),a(6),a(7),
USE sjtj
GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh
endfor
为什么GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh只在xz(1,1)的记录内填入了A,怎么实现依次按照xz(1,1),xz(2,1)...xz(i,1)在表sjtj中填入数组a的值呢