Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse SCAN...ENDSCAN
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152785
Message ID:
01152796
Views:
23
And yet another option, this one assuming you want to scan the table in the reverse order of an existing index, then you just set that order descending
Use MyTable Order MyOrder Descending
Scan
***
EndScan
or
Use MyTable
***

SET Order TO MyOrder Descending
Scan
***
EndScan
[Update] I assumed the index was not created with Descending clause, if so, then to get the reverse order the ascending clause should be used[/Update]
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform