We help IT Professionals succeed at work.

Using Edit control (as double or float) with validation in Visual C++ -- how to allow entry of decimals (ie: 0.3333, 5.5, etc)

nasa
nasa asked
on
974 Views
Last Modified: 2013-11-20
Hi,

How do I do the afore mentioned question?  Right now my app just makes noise at me if I try to enter a 0.333....

Thanks in advance


Nasa
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks!

Commented:
If you do it that way, it doesn't become strictly numeric anymore because you can then enter letters as well as numbers. How do you restrict what the user is typing... .i.e. how do you allow only numbers and decimals to be entered and exclude letters without having to validate on OK.

Cheers.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.