Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need idea for sort
Message
De
26/02/2010 09:11:21
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
26/02/2010 08:36:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01451160
Message ID:
01451222
Vues:
40
Hi Craig

No ::(

1.1
1.10
1.2
1.2.R
10.1

goes to (lets say len=5)

001.1
01.10
001.2
1.2.R
010.1

sorts to

1.1
1.2
1.10
10.1
1.2.R

should be

1.1
1.2
1.2.R
1.10
10.1

Thank you anyway
Agnes

>Off the top of my head, without testing
>
>SELECT PADL(ALLTRIM(field), LEN(field), "0") AS SortOrd, field
> FROM table
> ORDER BY SortOrd
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform