Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrange records
Message
 
 
À
14/03/2004 00:35:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00886053
Message ID:
00886055
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
You can create table SizeOrder and use it to order result of a query.
* SizeOrder table
SIZE C(3)  SortOrder C(1)
S          1
M          2
L          3
XL         4
XXL        5

SELECT mytable.* ;
	FROM mytable ;
	JOIN SizeOrder ON size = PADR(CHRTRAN(myfield, "1234567890", ""), 3) ;
	ORDER BY SortOrder 
>Hi to All,
>
>anyone who can help me to view my records in this way.is it possible?
>
>1110S
>1110M
>1110L
>1110XL
>1110XXL
>
>co'z when i retreive the records it will display
>
>1110L
>1110M
>1110S
>1110XL
>1110XXL
>
>i want to arrange it in small,medium and large.
>
>TIA
>Ryan
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform