Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I make a text box numeric
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00359135
Message ID:
00359154
Views:
10
Everything you are doing seems correct. To make a textbox numeric, you assign a value of zero. It may be worth subclassing the textbox to different types - you can then have a numeric textbox which already has value zero and just place that on the form. Useful also for date textboxes.

>Hi all,
>
>I've got a textbox on a form and I want it to be numeric. They always seem to be character except if I assign them a numeric value in the forms Init. Is this the proper way to do it and are they likely to change back for any reason. Also, using an input mask of say 999.99 allows me to control what can be input but when I tab back to the txtbox or setfocus after entering the data into it, the cursor always moves to just in front of the last character in the box. Should this happen or am I doing the input mask wrong.
>
>TIA
>Chris.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform