Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mixed ASC and DESC in Index Expression
Message
From
12/02/2009 17:43:34
 
 
To
12/02/2009 12:33:04
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01381323
Message ID:
01381452
Views:
63
>How do you write an index expression where the first field needs to be descending, but the second may need to be ascending?

The other entries are possible solutions -- but it seems to be a bit cumbersome to store in the index. Also this makes using rushmore more difficult with this index. Instead of transforming the field in the index, define a new field of the same size and do the transformation of the value there. The field assignment can be done by a stored procedure on record update/add trigger. Then just build the index with this transformed field. Rushmore should still work -- just define a variable to get the transformed value and then use this in the query expression.
Previous
Reply
Map
View

Click here to load this message in the networking platform