Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sorting on part of expr descending
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01640823
Message ID:
01640824
Vues:
65
Hi Dimitri,

Not work for?!?

The problem can cause decimal part...
FIELD1 + STR(100000000 - UNIT_PRICE*100,10) + FIELD2
MartinaJ

>Hi,
>
>I need to sort report on 3 fields:
>
>FIELD1 + UNIT_PRICE + FIELD2
>
>FIELD1 and FIELD2 are CHAR types. UNIT_PRICE is DECIMAL
>
>The key is that the sort on UNIT_PRICE would be descending. That is, the higher number appearing at the top. I tried the following:
>
>
>FIELD1 + STR(1000000 - UNIT_PRICE,10,2) + FIELD2
>
>
>But it does not seem to work. Or does not work all the time. What am I doing wrong?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform