再看这次结果如何:
n=0
cjbak=200
USE cjk
INDEX ON cj to cj
SET ORDER TO cj DESCENDING
GO top
FOR i=1 to RECCOUNT()
REPLACE pm with IIF(cj=cjbak,n,i)
cjbak=cj
n=pm
skip
NEXT
BROWSE
n=0
cjbak=200
USE cjk
INDEX ON cj to cj
SET ORDER TO cj DESCENDING
GO top
FOR i=1 to RECCOUNT()
REPLACE pm with IIF(cj=cjbak,n,i)
cjbak=cj
n=pm
skip
NEXT
BROWSE