>USE bill_value >GO top >m.no=1 > >DO WHILE .t. AND !EOF() >replace no WITH m.no >skip >m.no=m.no+1 >IF EOF() >EXIT >ENDIF >enddo Even IF it was the way to go, M, you're STILL using that a old-old loop construct. Much better is: <pre> SCAN replace no WITH m.no m.no=m.no+1 End SCANand even the way you had it there was unneeded code:
DO WHILE !EOF() replace no WITH m.no skip m.no=m.no+1 enddo