Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set/restore TAG() or ORDER()?
Message
From
13/02/2018 03:22:19
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01658087
Message ID:
01658088
Views:
49
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform