Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal separator
Message
De
06/04/1999 07:03:40
 
 
À
30/03/1999 17:36:23
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00203576
Message ID:
00205519
Vues:
18
>>If the user is setting the decimal symbol as the , in the control panel, they want to be able to use the numeric keypad . for fast data entry of numbers.
>>
>>Excel and Access are supporting this, but not VFP. I use Set sysformats ON. The only way I found to enter a decimal is to type on the ,
>>
>>Any ways to do this?
>>
>>TIA
>Is this a texbox on a form? Does the inputMask property help you?
>

Alternative : in the KeyPress-event, check if the key is a '.'. If so, do a KEYBOARD "," to translate it into a '.'.

By the way, for some regional settings (of Windows), the '.' on the numeric keypad is ALWAYS ',', even when you set the decimal symbol as '.'. Probably a bug / feature in Windows (Win NT 4.0, Dutch (Belgian) region and keyboard).

Marc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform