Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET POINT and numeric input
Message
From
11/01/2002 09:53:13
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
11/01/2002 09:44:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00603396
Message ID:
00603472
Views:
17
Hilmar don't put the SET SYSFORMATS ON on the lostfocus you should put SET POINT TO this will restore the default being the point or comma.

>>Hi Hilmar if you whant to use allways the point you can use the SET POINT TO "." in your dataenvironment after the SET SYSFORMATS ON or build a base textbox class for numeric and in the gotfocus event iSSUE the SET POINT TO "." and in the lostfocus event issue the SET POINT TO, but in this case you may also whant to change the SET SEPARATOR.
>>
>>>Users typically input lots of numbers with the numeric keypad, but when the Control Panel defines the decimal "point" as a comma, the point is not accepted. This is awkward for quick data entry.
>>>
>>>Does anyone have a satisfactory solution for this? I want to continue using SET SYSFORMATS ON. I think several approaches are possible in theory, including a) temporarily changing SET POINT for the control that has the focus (how?), b) converting commas to points in .KeyPress().
>>>
>>>TIA, Hilmar.
>
>First of all, thanks!
>
>Now, I tried this (changing the LostFocus() to SET SYSFORMATS ON - this will reset to the Windows default, instead of always using a comma). However, this visually affects ALL controls on the form, not only the current one. This makes for some interesting (and undesired) visual effects when tabbing through the controls.
>
>Hilmar.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform