Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement