Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a compound index with a descending portion
Message
De
28/09/2005 15:31:25
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
28/09/2005 11:12:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01053896
Message ID:
01054166
Vues:
40
>>>>I have an application that needs a compound index built. The fields are all string fields, but the user would like the second field to be in descending order. Is there a good way to do this in VFP?
>>>>
>>>>TIA
>>>
>>>The best of the simples way is to use SYS(15), but it don't support 0h0
>>>
>>>INDEX ON FIELD1+sys(15,0HFFFEFD.....,field2) tag ...
>>>
>>
>>The problem with the SYS command is the phrase "Kept for Backward compatiblity" in the help file. This makes me wonder if the command will still be around from version to version and supported. Thanks for the response.
>
>1. This is a false problem on the last version.
>2. It works. "Kept for Backward compatiblity" it doesn't have some meaning for me.

Sys(15) is there since FoxPlus, and the only reason it's marked as "backward compatible" is that chrtran() is more flexible and yet can do the same thing. I don't see sys(15) ever going away, specially when that was the recommended way to get national collating sequences in the early versions. There was european.mem file distributed with Fox, FP and VFP until some version, which contained a variable to be used with sys(15) to achieve collating sequence General. My bet is it stays.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform