Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding Decimals
Message
De
09/09/2005 05:27:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
01047952
Message ID:
01048010
Vues:
18
>Hi,
>
>I have some products that I need to control stock using decimals. Other I don't need.
>
>So, I have a report like that:
>
>Product                Quantity
>---------------   -------------
>Product A             1,000.000
>Product B               234.000
>Product C                35.300
>Product D               200.000
>
>
>I'like to print decimals just for Product C, and the other I want to hide it. Eg:
>
>Product                Quantity
>---------------   -------------
>Product A             1,000
>Product B               234
>Product C                35.300
>Product D               200
>
>
>If I use one font like Courier, I can do it using two fields in my report, doing some test like "Print When Int(Quantity)=Quantity"... but I will not use this kind of font, and I don't have a fixed width for it.
>
>Is there some way to do it?

put two near fields side by side
[integerPart][fractionPart]
integerPart = INT()
fractionPart = MOD(,1) Print when MOD(,1)#0

format fractionPart left aling , inputmask .... 
this should work con not fixed fonts.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform