Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Currency field display problem
Message
De
08/10/2001 10:25:43
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
08/10/2001 01:35:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00565353
Message ID:
00565480
Vues:
21
>Hi,
>I am having a small difficulty. I have a currency field which is displayed on the form in a text box but this field would not obey
Set Decimals To 2
>Set fixed On
setting. The only way i can control the display is by changing the textbox format property to $999,999,999.99 and than it would show me values in 2 decimal digits.
>How can i make Set Decimal setting effective on currency fields?

Vlad has already told you the best things to do, I'll only give you the reasons: currency fields are basically integers, which hold the value multiplied by 10000. Whenever such a value is used in calculation, it's practically divided by 10000 (OK, I don't believe they really multiply and divide each time, but that's the effect), so it always has four decimals. The "Set decimals" applies to regular numbers which have variable number of decimals; this one is fixed.

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

Click here to load this message in the networking platform