Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input Mask Question
Message
 
 
À
28/03/2004 14:15:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00890278
Message ID:
00890294
Vues:
21
Robert,

I think Jim Booth put a numeric textbox class up in the libraries here, it might have some of the features you are looking for.

Because normally you do not want to store the , in the data field itself. one easy way of dealing with this is to make the mask a "display only" thing, ie clear it when the textbox gets focus and restore it on lost focus. You can easily create this as a class and use it in the places where you want this functionality.
*GotFocus()
this.cSaveInputMask = this.InputMask
this.InputMask = ""

*LostFocus()
this.InputMask = this.cSaveInputMask
>I like for numbers displayed in a text box to have the 1000's separated by a comma, i.e, 10,000 or 102,000. I can make this happen by setting the Input Mask to "999,999,999." However, the input mask is also active when keying the data. This is confusing for the user because as the numbers are keyed, they show up from left to right, thus, 1000 looks like "100,0" until you hit the enter key when it changes to "1,000"
>
>Is there a way to make the display of numeric data in the text box show the thousands comma separator without seeing while inputing the data?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform