Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need idea for sort
Message
De
26/02/2010 09:37:21
Thomas Ganss (En ligne)
Main Trend
Frankfurt, Allemagne
 
 
À
26/02/2010 09:31:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01451160
Message ID:
01451232
Vues:
36
>>Hi Craig
>>
>>No ::(
>>
>>1.1
>>1.10
>>1.2
>>1.2.R
>>10.1
>
>I don't see any other way but to split this into fields. Each field is a string, containing a character representation of a chunk which was originally between the dots...
>
>select getwordnum(fld, 1, "."), getwordnum(fld,2, ".") ... order by 1,2,3,4
>
>Now if you want 1.12 to sort after 1.2, you may need to left-pad the numbers to their maximal length.

You have to double the field length to allow for mixed cases.

regards

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform