>I have a scan..endscan codesnip which behaves strangely. When I use this codesnip alone with the debugger, it works fine (runs through the table). But when I put it to a .prg with other codesnips, it stops after the first record. Interestingly enough if this scan..endscan codesnip runs through a table in which the first record doesnt meet the 'for' condition of scan..endscan command, it works fine as well.
Hi Tamas,
It could happens if the table iin SCAN...ENDSCAN is ordered by index and you're changing a field which is a part of the index in the loop. It could change location of the current record in the index and, as result, skip some or all records that matchec FOR condition.
--sb--