Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET POINT and numeric input
Message
De
11/01/2002 09:44:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/01/2002 07:57:54
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00603396
Message ID:
00603470
Vues:
15
>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform