Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange results of formatting
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows Server 2003
Divers
Thread ID:
01148697
Message ID:
01149004
Vues:
10
What is the source of the number? Is it a field and if so, is it a memo field or a numeric field? Is it a variable and if so, is the variable created in the report or before the report runs? What happens with something like:

ALLTRIM(transform(mytable.myfield, "###,###,###,###.##"))

with the field format properties on the report as right aligned character?

>I was trying to format a number on a report to two decimal places and using 99999.99 as the format gave strange results. I got numbers like 589.70.3 so it was rather odd, to say the least. So I tried a different method:
>
>ALLTRIM(TRANSFORM(number, "999,999.99"))
>
>and made the field character. So now what prints in the column is "MEMO". Never seen this one before. Anybody seen this?
>
>Russell Campbell
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform