Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Money Values the way I want to.
Message
De
23/06/1999 12:34:11
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/06/1999 20:32:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00232788
Message ID:
00233050
Vues:
28
>a) Floating '$' directly to the left of the value
>b) Surrounded by parentheses if negative
>c) No space between the '$' and the left parenthesis when number of digits is less than the maximum.
>d) Always a zero to left of point if amount is less than 1 dollar.
>e) Commas at every third digit.
>f) In this case, a maximum of 6 numeral digits to the left of the point.
>
>The following two things yeild the same result and don't work
>
>TRANSFORM(myval,"@($$$$,$$9.99")
>
>TRANSFORM(myval,"@(@T$$$$,$$9.99")
>
>Both of the above put space between the $ and ( and neither prints commas at all??

Try some of these:
?tran(-123.45, "@($ **,**9.99")
?tran(-123.45, "@( **,**9.99")
?tran(-123.45, "@( $**,**9.99")

Note the space between the function and picture clauses. You may want to replace the asterisks with something else or nothing, using CHRT() around this.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform