>Has anyone found a way to enter numeric data into a textbox and have it display correctly as it is being typed? If I use an inputmask such as "999,999,999" and you do data entry of the number 45000, you will see 450,00 before you accept the entry and it reformats correctly to 45,000. I've tried many variations of using the format and inputmask properties but no success.
Jim, the radical solution is to do it on the framework level. As others say you can use some classes from the Files section, or for example, add to your base textbox class property cInputmask and the code below you will get what you want.
this.cInputMask = this.InputMask
IF type("this.Value") $ "NFYBI"
this.InputMask = STRTRAN(this.InputMask,",","")
this.InputMask = STRTRAN(this.InputMask," ","")
ENDIF
IF type("this.Value") $ "NFYBI"
this.InputMask = this.cInputMask
ENDIF
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison