i have used SCAN command,, sometimes it scans every record that return .t., but most of the time, only the first record that matches criteria... please help...
SCAN FOR ALLTRIM(Q) = ALLTRIM(trans.idnum)
REPLACE trans.idnum WITH ALLTRIM(R)
CTR = CTR + 1
ENDSCAN
SCAN FOR ALLTRIM(Q) = ALLTRIM(trans.idnum)
REPLACE trans.idnum WITH ALLTRIM(R)
CTR = CTR + 1
ENDSCAN