>I have to change my code, before SCAN, so that the SCAN would go through all records. Therefore, I will need to SET ORDER TO before the SCAN.
>What is a better practice, saving TAG() to the memory variable and then restoring it (by SET ORDER TO TAG(cSavedTag)).
>Or, saving the ORDER() to the memory variable and then restoring it (by SET ORDER TO (cSavedOrder)
>?
You can also USE yourTable AGAIN IN 0 ALIAS Unordered, SCAN it, and USE it at the end. The initial (and ordered) workarea will be left untouched.
----------------------------------
António Tavares Lopes