又来求教了,有了点小问题
IF USED('odrep') THEN SELECT odrep
ELSE
SELECT 0
USE odrep
ENDIF
LOCATE FOR odrep.month-odrep.pdtcode-odrep.spec-odrep.standn==tg1-tg2-tg3-tg4
IF FOUND()
REPLACE hamx.team WITH odrep.team,hamx.rep WITH odrep.rep,hamx.regbj WITH odrep.regbj,hamx.supbj WITH odrep.supbj,hamx.repbj WITH; odrep.repbj,hamx.city WITH odrep.city,hamx.prov WITH odrep.prov
USE IN odrep
ELSE
REPLACE hamx.team WITH '非目标',hamx.rep WITH '非目标',hamx.regbj WITH 'XX',hamx.supbj WITH 'X',hamx.repbj WITH 'XXX'
USE IN odrep
ENDIF
不好意思,又来求教。
以上代码,if found() 为真,那么后面的replace执行正确,可是else之后的replace却无法执行,我实在不明白
版主能否赐教。
谢谢