Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Entry of formatted numeric data in text boxes
Message
De
14/08/1998 05:08:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/08/1998 21:50:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00126773
Message ID:
00126820
Vues:
31
>I frequently need to set the inputmask property of a textbox (or the surrogate that is the default for grid cells) to something like '9999,999,999.99'. Piece of cake. But, when the field bound to the control already has a value, say, 123.44, and the user wants to change it to, say, 12.01, he ends up with a value of something like 12123.00.
>
>We first noticed this in our accounting application, with fast typing users. We tried with setting CONFIRM on or off, tabbing out of the field, pressing enter after the data has been entered, with insert mode on or off, using the K option of the format property, etc.
>
>Even with no inputmask, this happens. It is distressing to waste so much time with a trivial issue like this.
>
>BTW. The bound field is numeric.
>
>Before this, we had to convince our customers to accept the comma as the number separator and the period as the decimal point. In this country the opposite is the convention. This mask '999.999.999,99' makes incredible fuss when trying to enter the decimals.
>
>Any help ?
In gotfocus you could add :
keyboard "{Ctrl+A}"
Not smart but works to select entire field even with click. Menu item "Select all" should be available (translated to your language).
For second part in our country too convention is like '999.999.999,99' and VFP can use it (see "set sysformat").
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform