Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trailing zero in textbox
Message
De
17/04/2007 17:49:29
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:
01217096
Vues:
14
>>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>

We should elect you to the (new) post of Chief Archaeologist of UT :).

Though I've seen you do better than this - digging up messages from five or more years ago.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform