>In some versions of VFP I found this wasn't enough - for instance, when you click into the middle of the textbox. Also, if the insert is off, the zero won't go away as you type.
>
>The trick which works for sure is to remove the inputmask in .gotfocus() and restore it on .lostfocus():
>
>
>this.addproperty("SaveMask", this.inputmask)
>this.inputmask=""
>* or, alternately - this also works but keeps the decimals, if any:
>this.inputmask=chrtran(this.inputmask, ",", "")
>
>* lostfocus
>this.inputmask=this.savemask
I'll try it tomorrow, thanks, because now I do have a problem with traling 0 <g>
If it's not broken, fix it until it is.
My Blog