Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Mask in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01264909
Message ID:
01264912
Views:
12
>Hi All,
>
>When entering numbers into a grid how can I set the Input mask so when you type you see 1000 and as soon as you hit enter you will see the following 1,000?
>
>Currently I have the column and text input mask property set to 99,999,999.
>This is creating confusion for some users when entering numbers since they see 10,00 when attempt to enter 1,000?
>
>Thank you,
>Daniel

In the GotFocus event of the textbox save the current InputMask into the custom property and remove the commas from the InputMask. Then reset it back to original in LostFocus event.

You may have your own class for this purpose.

See details in Re: Amount textbox Thread #1247404 Message #1247562
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform