请教删除指定值记录
想删除字段中有指定数值的记录,但不成功,请教先生指点,谢谢(代码及表在附件中
删除指定值.rar
(1.62 KB)
)
CLEAR SET TALK OFF SET SAFETY OFF USE 表3.dbf COPY TO 表4.dbf USE 表4.dbf DELETE ALL FOR _Delete(FCOUNT()) PACK GO TOP BROWSE USE RETURN FUNCTION _Delete(nFCount) LOCAL i FOR i = 1 TO nFCount IF INLIST(EVALUATE(FIELD(i)), -1,-3,-5,-9,2) RETURN .T. ENDIF ENDFOR RETURN .F. ENDFUNC