Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Matter of interest
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00644142
Message ID:
00644637
Views:
16
>>Hi I am upgrading a system originaly written in Fox 2.2 (I think it was
>>2.2) for DOS. I'm converting it into Vis Fox 6. Some of the index tags in
>>the tables use character prime key fields and do this with DATE fields.
>>
>>'primekeycharacterfield' + STR(999999-(AS_DATE-{01/01/1900}),6)
>Why make a Descending index at all? You can do:
>
>SET ORDER TO MyTAG DESCENDING
>
>to switch the order.

As Hilmar pointed out, this allows you to make the first field ascending and the second one descending. It could very well be faster than SELECT...ORDER BY 1, 2 DESC.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform