Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inputmask as I type...
Message
From
22/07/2008 18:25:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/07/2008 18:09:01
Chris Sund
Silhouette Solutions
Utah, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Miscellaneous
Thread ID:
01333323
Message ID:
01333330
Views:
9
>Hello,
>
>Does anyone know how to implement the inputmask as the person types in the field. Here's my input mask...
>
>99-9999-99-9-99-99-9999
>
>Currently if I set the input mask my field shows
>
> - - - - - -
>
>I want my field to be blank, and have the dashes insert in the appropriate places as the user types.
>
>
>Any help is appreciated!

You may react in .interactivechange and set the .inputmask= left("99-9999-99-9-99-99-9999",n) characters of it when len(textbox.text) reaches m - n would need to be long enough to have m nines in it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform