create cursor tt (dm c(7),次数 c(1))
insert into tt (dm) values ("6509070")
insert into tt (dm) values ("6509070")
insert into tt (dm) values ("6509071")
insert into tt (dm) values ("6509072")
insert into tt (dm) values ("6509072")
insert into tt (dm) values ("6509073")
insert into tt (dm) values ("6509073")
insert into tt (dm) values ("6509074")
insert into tt (dm) values ("6509075")
insert into tt (dm) values ("6509075")
insert into tt (dm) values ("6509076")
insert into tt (dm) values ("6509077")
insert into tt (dm) values ("6509077")
insert into tt (dm) values ("6509078")
t1=""
scan
t2=dm
IF t1<>t2
REPLACE 次数 WITH "1"
ELSE
REPLACE record recno() 次数 WITH "2"
REPLACE record recno()-1 次数 WITH "2"
skip
ENDIF
t1=dm
Endscan
browse
[此贴子已经被作者于2017-8-16 12:30编辑过]