Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting on part of expr descending
Message
De
15/09/2016 08:14:02
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01640823
Message ID:
01640870
Vues:
38
>>>hi Martina,
>>>
>>>It appears that the problem is with the records that have UNIT_PRICE of 0.00 (zero). These records appear at the top of the report. Then, after all zero-unit-price items are printed, the items of higher UNIT_PRICE start to appear. I will try your suggestion to see if this will fix it.
>>
>>To push zeros to the bottom, perhaps something like this:
>>
>>
>>FIELD1 + STR(100000000 - evl(UNIT_PRICE*100, 100000000),10) + FIELD2
>>
>
>First, thank you for your suggestion.
>
>What Martina suggested
>
>FIELD1 + STR(100000000 - UNIT_PRICE*100,10) + FIELD2
>
>also works for pushing zeros to the bottom. I wonder it is different from your suggestion of using EVL(). Is there a real difference!?

Yup, I think I had a brain fart. Mine would push the zeros on top :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform