Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal separator
Message
From
06/04/1999 07:03:40
 
 
To
30/03/1999 17:36:23
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00203576
Message ID:
00205519
Views:
19
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform