Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Truncate decimal zeros
Message
 
À
26/09/2008 19:54:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01351210
Message ID:
01351230
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Hi Don,

Try this:
TRIM(TRIM(PADL(MyNumericField,16),0,"0"),0,".")
>I think there is a way to do this but I'm not sure. Suppose you have a number field defined with 2 decimals. You want to print it in a report but truncate any trailing zeros (and the decimal point if both are zero). Is there a formatting technique that would do this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform