Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple index ASC / DESC
Message
De
15/05/2000 23:05:06
 
 
À
15/05/2000 16:48:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00369394
Message ID:
00369832
Vues:
18
>INDEX ON STR(999999999 - Field1) + Field2 + Field3 TAG MyTag
>You'll need to adjust the STR function to handle decimals.

Yep, and if you ever want to decend part of a character field, this should do it (call this code form your index):
lparameters tcString
local lcString, lnI

lcString = ''
for lnI = 1 to len(alltrim(tcString))
	lcString = lcString + chr(255 - asc(substr(tcString, lnI)))
endfor 

return lcString
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform