>What I had in mind was a 2-level nested scan that involved 2 different tables. The example you have given involves just one table which apparently causes the skipping that you speak of.
Stan,
What I do always so to be sure that it works is the following:
SELECT MyScanTable
SCAN
SELECT AnotherTable
*-- Do something in another workarea.
*
*-- Just to be sure that scan will work properly:
SELECT MyScanTable
ENDSCAN
Recently, I do another type of scan preferably, as long as I do not need a SCAN FOR clause:
lnRecordsToScan = RECCOUNT("MyScanTable")
FOR lnNr = 1 TO lnRecordsToScan
GO lnNr IN MyScanTable
*-- Do whatever you like. It will alwyas go to the right record in the correct workarea.
ENDFOR
Christian Isberner
Software Consultant