Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal separator
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00203576
Message ID:
00203764
Vues:
11
>>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
>
>Mario,
>
>Check SET POINT and SET SEPARATOR in help. Bear in mind they are scoped to the data session.
>These values are saved in the REGISTRY under HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\5.0\Options.
>
>
>José

Thanks Jose, but the set point to "." will force/overwrite Windows setting and this is not what I want. the only way I found is through the keypress event of the textbox (class):
If Set("point")="," and nKeyCode = 46
keyboard ","
endif

or the form:
If "." $ this.activecontrol.inputmask and Set("point")="," and nKeyCode = 46
keyboard ","
endif

Any better ideas.

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform