Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Textbox Woes
Message
From
05/07/1998 11:44:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
04/07/1998 18:21:18
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114109
Message ID:
00114333
Views:
18
>.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.
Previous
Reply
Map
View

Click here to load this message in the networking platform