Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index's order
Message
De
02/12/1998 09:50:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00163194
Message ID:
00163198
Vues:
21
Hola Emmanuel ---

Use the following as your index expression (assuming the field name is called "idvalue"):

INDEX ON PADL(ALLT(idvalue),2,"0")

This will create an index where the single-digit values are interpreted as 01,02,03 and will be ordered correctly.



>I need an index with the following secuence:
>
>"1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" ...
>
>the actual indexing method will do it like:
>
>"1" "11" "12" "2" "3" ...
>
>of course I'm talking about text data with numeric values
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform