USE ls
SCAN FOR i = 4 TO FCOUNT() IF ALLTRIM(EVALUATE(FIELD(i))) == "0" REPLACE (FIELD(i)) WITH "" ENDIF ENDFOR
ENDSCAN
行的,我的代码错在哪里?
在命令窗中:例如字段为ZF中把0的替换为"" replace zf with " " for alltrim(zf)="0" 是可行的,全部含有0都替换了。 现只要把字段逐个循环不也是可行吗 FOR i = 4 TO FCOUNT() cfiel=field(i) replace &cfiel with " " for alltrim(field(i))="0" endfor
为什么还要SCAN IF END ENDSCA