Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimals on Numeric fileds.
Message
De
20/12/1999 13:49:53
 
 
À
20/12/1999 13:35:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00306299
Message ID:
00306308
Vues:
23
>HI there!
>
>I have a problem entering decimals on a numeric field wich is
>2 integer and 1 decimal. When the textbox lost the focus it
>rounds the numbers. So, if i type 15,3 (we use metric system) it rounds to 15,0 or if i type 15,8 it rounds to 16.
>

If you're using the N data type, you need to allow for the total number of characters in the number; if you want to accept ##.#, the field should be defined as N(4,1) and you should use an inputmask as shown (you can use 9 rather than # if you prefer.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform