1楼第2个问题不知怎么解决?
回复 9楼 吹水佬
谢谢!1楼弟2个问题如何解决?
[此贴子已经被作者于2020-10-23 09:37编辑过]
create cursor b1 (jnh N(2),m0 c(3),m1 c(3),m2 c(3),m3 c(3)) insert into b1 values (1,"","","","") insert into b1 values (2,"","","","") insert into b1 values (3,"","","","") insert into b1 values (4,"","","","") insert into b1 values (5,"","","","") create cursor b2 (jnh N(2),m1 c(3),m2 c(3)) insert into b2 values (1,'M1',"") insert into b2 values (3,"M1","M2") insert into b2 values (4,"M1","") SELECT b2 INDEX on jnh TAG jnh SELECT b1 SET RELATION TO jnh INTO "b2" SCAN IF FOUND("b2") FOR i=2 TO FCOUNT("b2") cf = FIELD(i,"b2") IF !EMPTY(FIELD(cf,"b1")) kk1 = 'b1.' + cf kk2 = 'b2.' + cf REPLACE (kk1) WITH EVALUATE(kk2) IN "b1" ENDIF ENDFOR ENDIF ENDSCAN SET RELATION TO BROWSE