Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need idea for sort
Message
De
26/02/2010 08:30:36
 
 
À
26/02/2010 07:43:49
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01451160
Message ID:
01451209
Vues:
36
Then you can't have done as I explained? You do all this in ONE operation, either with inline functions or with separate functions. By the way, I got another solution. You separate the numeric part, by using chrtran(), and convert it into a numeric value. Then you use int() on this value to separate the first part. The remainder is the second value to sort on.

I don't have the time to help you more right now, but if you could send me a private email with some test data, I can make a solution for you later today.

>You mean somefunc? Yes. But I would end up with 21 sort fields.
>
>>What I call yourfuncx() could probably be inline functions.
>
>>>>I suggest that you select into a cursor, something like this semicode
>>>>Select *,;
>>>>  somefunc1(yourfield) as sort1,;
>>>>  somefunc2(yourfield) as sort2,;
>>>>  somefunc3(yourfield) as sort3,;
>>>>  somefunc4(yourfield) as sort4;
>>>>  from yourtable into cursor yourcursor order by sort1,sort2,sort3,sort4
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform