Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display value to be rounded in a text box control
Message
De
09/06/1999 09:45:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/06/1999 03:24:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00227785
Message ID:
00227851
Vues:
29
>Hi there,
>
>Has anyone ever experienced this situation:
>
>I need to round the "display value" in a text box control, say, as a result of some calculation, I now have 123.4567 as the VALUE in the text box, but I have to display it as 123.46, i.e. rounded with 2 decimals. The problem is that I don't really want to change the value itself because I still need more than 2 decimals in further calculation.
>
>Any idea is very much appreciated.

Create a custom property to hold the exact value, and store the results of calculation there, and the rounded result into your textbox.value. You may do that in the code which does the calculation. Later, you can use the custom property for further calculation.

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