Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trailing zero in textbox
Message
 
 
To
29/12/2005 20:04:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081752
Message ID:
01217089
Views:
16
>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():
>
>
* gotfocus
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform