Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency format
Message
De
06/04/2007 16:39:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01212654
Message ID:
01213087
Vues:
17
>>Why does the Currency field type carry 4 decimals, and if it is used in a form textbox or report control, how should it be formatted so it only displays 2 decimals?
>>
>>Seems like a bother to me. Why not just use N(10,2)?
>
>I think it only displays 2 decimals anyway. Also nothing prevents you from using NUMERIC for monetary values.
>
>You can also look at SET DECIMALS command.

That's what I've been doing. If the fieldtype is Currency it shows 4 decimals in the textbox and any report fields. Then you have to deal with special formatting parameters to show only 2 decimals.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform