Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric Textbox Woes
Message
De
05/07/1998 11:44:54
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/07/1998 18:21:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00114109
Message ID:
00114333
Vues:
19
>.gotfocus
>if "9,9" $ this.inputmask
> this.savemask=this.inputmask
> this.inputmask=chrt(this.inputmask, [,],[])
>endif
>
>.lostfocus
>if not empty(this.savemask)
> this.inputmask=this.savemask
> this.refresh
>endif
>
>does the trick for me. Maybe I should have checked for "#,#" and such too, but I don't use them.

Just to add: this works if you have an input mask. If you don't, it doesn't. I actually assign one almost everywhere, though I store it into a public variable; when I tried the form today without the public variable, the numeric fields defaulted to no inputmask (no "variable not found" error, really cute), and it started misbehaving again. I think I'll look for David's class.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform