主题:急求教
FOR i=1 TO i1
USE hz
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) TO 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
APPEND blank
GATHER FROM xz(i,1) FIELDS mc
GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh
ENDFOR
请教:为什么a数组依次填入表中,为什么xz数组都办填入xz(1,1)的值呀,
USE hz
COUNT FOR 乡镇信息=ALLTRIM(xz(i,1)) TO 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
APPEND blank
GATHER FROM xz(i,1) FIELDS mc
GATHER FROM a FIELDS hs,ggrs,zfh,dsh,ldrkh,nyh,czh
ENDFOR
请教:为什么a数组依次填入表中,为什么xz数组都办填入xz(1,1)的值呀,