Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trailing zero in textbox
Message
 
 
À
29/12/2005 20:04:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01081752
Message ID:
01217089
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform