VFP表的记录修改后,怎么用时间把修改过的记录区分出来?
例如:一个表有若干条记录,在不同时间对表的相关记录进行了修改,能否有办法把修改过的记录筛选出来?最好是用时间显示。
create cursor aa (a1 c(10),a2 c(10),dtime t ) insert into aa (a1,a2) values ("12345","34567") insert into aa (a1,a2) values ("12345","34567") insert into aa (a1,a2) values ("12345","34567") insert into aa (a1,a2) values ("12345","34567") insert into aa (a1,a2) values ("12345","34567") go 1 SCATTER name ls1 &&保存修改前的记录 replace a1 with chrtran(a1,"2","0") SCATTER name ls2 &&保存修改后的记录 if !compobj(ls1,ls2) &&记录被修改过 replace dtime with datetime() endif browse 或者 go 2 replace a1 with chrtran(a1,"5","9"), dtime with datetime() browse