Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing/sorting problem...
Message
De
18/01/2005 15:58:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
00978295
Message ID:
00978312
Vues:
15
>I would create a table with two columns: Size C(5) and SortOrder I and use it for sorting. Another way is to store sizes in a string in proper order and use AT() as sortorder.
lcSizes = ",XS,S,M,L,XL,2XL,...,"
>? AT([,] + ALLTRIM(size) + [,], lcSizes)
>

OK, I thought about it ;-)

#1 - perfect long term solution, easy to implement.

#2 - also perfect for this munging session.

Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform