Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index
Message
From
23/03/2004 06:21:29
 
 
To
23/03/2004 05:21:53
Ls Wong
Vista Solution Sdn. Bhd.
Ampang, Malaysia
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Re: Index
Miscellaneous
Thread ID:
00888779
Message ID:
00888787
Views:
16
You can use this statement

index on code + alltrim( str( 1000- amount )) tag code_amt

I am assuming that 1000 is the maximum amount possible from your values. Change it as per the field width.

Hitendra

>how to index the following data (code ascending and amount descending)
>
>before:
>code amount
>---- ------
>AAA 100.00
>AAA 50.00
>BBB 200.00
>CCC 250.00
>AAA 300.00
>CCC 500.00
>BBB 100.00
>
>after:
>code amount
>---- ------
>AAA 300.00
>AAA 100.00
>AAA 50.00
>BBB 200.00
>BBB 100.00
>CCC 500.00
>CCC 250.00
>
>TQ.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform