Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index problem
Message
From
23/06/2001 17:30:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00522827
Message ID:
00522832
Views:
9
Torgny,
Try:
INDEX ON cAuktCID + cObjectCID + STR(nOffer) + PADL(100000-VAL(cid),6,"0") DESCENDING TAG test
HTH

>Can anyone help me with the right syntax for an indexkey that sort the following data:
>
>
>cAuktCID cObjectCID nOffer CID
>" 21" " 83" 567.00 " 129"
>" 21" " 83" 567.00 " 126"
>" 21" " 83" 567.00 " 128"
>" 21" " 83" 650.00 " 125"
>
>
>I want it to look like this when it's indexed.
>
> Desc Desc Desc Asce
>" 21" " 83" 650.00 " 125"
>" 21" " 83" 567.00 " 126"
>" 21" " 83" 567.00 " 128"
>" 21" " 83" 567.00 " 129"
>
>I have tried with this, but i does not work:
>cAuktCID + cObjectCID + STR(nOffer) + STR(VAL(cid)*-1) DESCENDING
>
>The 3 first columns gets sorted right but CID-column always
>ends up in descending order although i use -1 in the calculation.
>What am i missing here ?
Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform